comparison src/tft_outputs.asm @ 465:025a0ce21f8b

BUGFIX: Minor layout corrections in imperial units dive screen
author heinrichsweikamp
date Fri, 18 Nov 2016 10:49:32 +0100
parents b86f86ec570e
children 7f4c3b2e6bb7
comparison
equal deleted inserted replaced
464:0491a84fd0b8 465:025a0ce21f8b
1149 call adjust_depth_with_salinity ; computes salinity setting into lo:hi [mbar] 1149 call adjust_depth_with_salinity ; computes salinity setting into lo:hi [mbar]
1150 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet 1150 call convert_mbar_to_feet ; convert value in lo:hi from mbar to feet
1151 WIN_MEDIUM dm_custom_avr_stop_column3,dm_custom_avr_stop_row 1151 WIN_MEDIUM dm_custom_avr_stop_column3,dm_custom_avr_stop_row
1152 output_16 ; yxz 1152 output_16 ; yxz
1153 bcf leftbind 1153 bcf leftbind
1154 STRCAT_PRINT " " 1154 PUTC " "
1155 clrf WREG
1156 movff WREG,buffer+.3 ; limit string length to 3
1157 STRCAT_PRINT ""
1155 return 1158 return
1156 1159
1157 TFT_update_avr_stopwatch_metric: 1160 TFT_update_avr_stopwatch_metric:
1158 ; Non-resettable average depth 1161 ; Non-resettable average depth
1159 movff avg_rel_pressure_total+0,lo 1162 movff avg_rel_pressure_total+0,lo
1593 STRCAT_TEXT_PRINT tPercent 1596 STRCAT_TEXT_PRINT tPercent
1594 return ; Done. 1597 return ; Done.
1595 1598
1596 global TFT_debug_output 1599 global TFT_debug_output
1597 TFT_debug_output: 1600 TFT_debug_output:
1598 return
1599 WIN_TINY .80,.0 1601 WIN_TINY .80,.0
1600 call TFT_standard_color 1602 call TFT_standard_color
1601 lfsr FSR2,buffer 1603 lfsr FSR2,buffer
1602 movff hardware_flag,lo 1604 movff analog_sw1,lo
1603 output_8 1605 output_8
1604 STRCAT_PRINT "" 1606 PUTC ","
1607 movff analog_sw2,lo
1608 output_8
1609
1610 STRCAT_PRINT ""
1605 return 1611 return
1606 1612
1607 global TFT_divetimeout ; Show timeout counter 1613 global TFT_divetimeout ; Show timeout counter
1608 TFT_divetimeout: 1614 TFT_divetimeout:
1609 call TFT_warning_set_window ; Sets the row and column for the current warning 1615 call TFT_warning_set_window ; Sets the row and column for the current warning