comparison src/tft_outputs.asm @ 13:2af021c66b0d

fix negative temperature display in surfacemode
author heinrichsweikamp
date Thu, 30 May 2013 19:11:12 +0200
parents 04794990b619
children 7b06f20881be
comparison
equal deleted inserted replaced
12:9db9a1deefd1 13:2af021c66b0d
1268 movlw d'3' 1268 movlw d'3'
1269 movwf ignore_digits 1269 movwf ignore_digits
1270 bsf ignore_digit5 ; Full degrees only 1270 bsf ignore_digit5 ; Full degrees only
1271 output_16 1271 output_16
1272 1272
1273 ; read-back the buffer+3 1273 ; read-back the buffer+4
1274 movff buffer+3,lo 1274 movff buffer+4,lo
1275 movlw " " ; Space 1275 movlw " " ; Space
1276 cpfseq lo ; Was it a space (between +1°C and -1°C)? 1276 cpfseq lo ; Was it a space (between +1°C and -1°C)?
1277 bra TFT_temp_surfmode1 ; No. 1277 bra TFT_temp_surfmode1 ; No.
1278 movlw "0" ; Yes, print manual zero 1278 movlw "0" ; Yes, print manual zero
1279 movff WREG,buffer+3 1279 movff WREG,buffer+3