chiark / gitweb /
firmware: if we fire a point just before being turned off, still note that the point...
authorIan Jackson <ian@davenant.greenend.org.uk>
Mon, 3 Jan 2011 22:13:52 +0000 (22:13 +0000)
committerIan Jackson <ian@davenant.greenend.org.uk>
Mon, 3 Jan 2011 22:13:52 +0000 (22:13 +0000)
detpic/points.asm

index 8b34bd363f1289eeb6c65f94bb4e571562b2d634..935dc67a9e5adc652a2a1dec846930a8ddca7a05 100644 (file)
@@ -296,14 +296,17 @@ cdu_tickdiv @
 near_gots code
 ;--------------------
 got_pointed @
-       tst_f_ifnz cducharging
-       return  ; presumably we just turned off
-
        bt_f_if0 pointmsg, 7
        bra     pointed_butnot_firing
 
        clr_f   pointmsg
+
+       tst_f_ifnz cducharging
+       bra     pointed_already_charging
+               ; we just turned off (and perhaps on again)
        call    cdu_discharged
+pointed_already_charging
+
        mov_lw  b'00100000' ; POINTED
        goto    serial_addbyte