comparison 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
comparison
equal deleted inserted replaced
381:c7142538050c 382:f2d5d93b4ca3
457 output_99x ; divetime seconds 457 output_99x ; divetime seconds
458 PUTC ' ' 458 PUTC ' '
459 call I2CREAD2 459 call I2CREAD2
460 movff SSPBUF,lo 460 movff SSPBUF,lo
461 call I2CREAD2 461 call I2CREAD2
462 movff SSPBUF,hi 462 movff SSPBUF,hi ; Read min. Temperature
463 call PLED_convert_signed_temperature ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required
463 movlw d'3' 464 movlw d'3'
464 movwf ignore_digits 465 movwf ignore_digits
465 bsf leftbind 466 bsf leftbind
466 output_16dp d'2' ; temperature 467 output_16dp d'2' ; temperature
467 STRCAT_PRINT "°C" ; Display 2nd row of details 468 STRCAT_PRINT "°C" ; Display 2nd row of details
468 469
469 WIN_TOP .50 470 WIN_TOP .50
470 WIN_LEFT .05 471 WIN_LEFT .05
471 lfsr FSR2,letter 472 lfsr FSR2,letter