Mercurial > public > hwos_code
diff src/comm.asm @ 651:682c514c53c0
3.21 release preparations
| author | heinrichsweikamp |
|---|---|
| date | Fri, 14 Apr 2023 09:00:19 +0200 |
| parents | 8c1f1f334275 |
| children | 75e90cd0c2c3 |
line wrap: on
line diff
--- a/src/comm.asm Sun Aug 28 13:13:38 2022 +0200 +++ b/src/comm.asm Fri Apr 14 09:00:19 2023 +0200 @@ -975,7 +975,7 @@ SERIAL_CC_RECEIVE lo ; (try to) receive option index btfsc rs232_rx_timeout ; received option index? bra comm_command_loop ; NO - show rx timeout message and back to command loop - + ; option index 0x00 - 0x0F: unused movlw 0x0F ; last option index of the unused range cpfsgt lo ; received option index > end of unused range ? @@ -992,9 +992,10 @@ bra comm_read_sp ; NO - process setpoint read ; option index = 0x49 - special handling button polarity - movf lo,W ; copy option index to WREG - iorlw 0x49 ; received option index for button polarity ? - bz comm_read_button_polarity ; YES - process button polarity read + movlw 0x49 + cpfseq lo ; received option index for button polarity ? + bra $+4 ; NO + bra comm_read_button_polarity ; YES - process button polarity read ; option index 0x1F - 0xF9: options managed by option table movlw 0xF9 ; last option index for options @@ -1030,9 +1031,10 @@ bra comm_write_sp ; NO - process setpoint write ; option index = 0x49 - special handling button polarity - movf lo,W ; copy option index to WREG - iorlw 0x49 ; received option index for button polarity ? - bz comm_write_button_polarity ; YES - process button polarity write + movlw 0x49 + cpfseq lo ; received option index for button polarity ? + bra $+4 ; NO + bra comm_write_button_polarity ; YES - process button polarity write ; option index 0x1F - 0xF9: options managed by option table movlw 0xF9 ; last option index for options
