diff src/comm.asm @ 464:0491a84fd0b8

CHANGE: Easier to understand "New Battery" menu (OSTC model dependent)
author heinrichsweikamp
date Wed, 02 Nov 2016 15:46:22 +0100
parents aadfe9f2edaf
children 237afdfb4918
line wrap: on
line diff
--- a/src/comm.asm	Mon Oct 31 15:21:12 2016 +0100
+++ b/src/comm.asm	Wed Nov 02 15:46:22 2016 +0100
@@ -23,7 +23,7 @@
 #include "adc_lightsensor.inc"
 #include "shared_definitions.h"
 
-	extern  new_battery_menu,restart,option_reset_all
+	extern  restart,option_reset_all
     extern  option_check_all, gaslist_cleanup_list, get_first_gas_to_WREG, get_first_dil_to_WREG
     extern  vault_decodata_into_eeprom
 
@@ -102,23 +102,6 @@
 	dcfsnz 	timeout_counter,F
 	bra		comm_service_exit           ; Timeout -> Exit
 comm_mode2:
-;    btfsc   battery_gauge_available
-;    bra     comm_mode4                  ; Skip
-;
-;	call	get_battery_voltage			; gets battery voltage
-;    movlw   .3
-;    cpfslt  batt_voltage+1              ; Batt Voltage less then 3*256mV?
-;    bra     comm_mode3                  ; No
-;    ; Set flag
-;    bsf     battery_removed_in_usb      ; =1: The battery has been removed in USB
-;    bra     comm_mode4
-;
-;comm_mode3:
-;    ; Voltage ok. Do we have a new battery now?
-;    btfsc   battery_removed_in_usb      ; =1: The battery has been removed in USB
-;    goto	new_battery_menu            ; show "New battery dialog"
-;
-;comm_mode4:
 	rcall	comm_write_get_byte
 
 	movlw	0xAA						; start byte=0xAA?