Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 382:f2d5d93b4ca3 64kByte Logbook
negative temperature in logbook and battery info menu
author | heinrichsweikamp |
---|---|
date | Wed, 15 Jun 2011 20:08:30 +0200 |
parents | ed26990716fe |
children | 904863f96582 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_logbook.asm Wed Jun 15 11:30:51 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_logbook.asm Wed Jun 15 20:08:30 2011 +0200 @@ -459,11 +459,12 @@ call I2CREAD2 movff SSPBUF,lo call I2CREAD2 - movff SSPBUF,hi + movff SSPBUF,hi ; Read min. Temperature + call PLED_convert_signed_temperature ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required movlw d'3' movwf ignore_digits bsf leftbind - output_16dp d'2' ; temperature + output_16dp d'2' ; temperature STRCAT_PRINT "°C" ; Display 2nd row of details WIN_TOP .50