From: Ian Jackson Date: Mon, 3 Jan 2011 22:13:52 +0000 (+0000) Subject: firmware: if we fire a point just before being turned off, still note that the point... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=d84f668d4d314171f60029fbafbc5e2fef6f01c6;p=trains.git firmware: if we fire a point just before being turned off, still note that the point was fired, send 20, etc. --- diff --git a/detpic/points.asm b/detpic/points.asm index 8b34bd3..935dc67 100644 --- a/detpic/points.asm +++ b/detpic/points.asm @@ -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