diff src/divemode.asm @ 23:e402813343b6

new option to switch samplingrate between 10s and 2s
author heinrichsweikamp
date Mon, 08 Jul 2013 12:38:16 +0200
parents 11d4fc797f74
children eca4a201d8cf
line wrap: on
line diff
--- a/src/divemode.asm	Mon Jul 08 11:37:37 2013 +0200
+++ b/src/divemode.asm	Mon Jul 08 12:38:16 2013 +0200
@@ -1138,8 +1138,7 @@
 	SAFE_2BYTE_COPY	temperature,minimum_temperature ; Reset Min-Temp registers
 
 ; Init profile recording parameters	
-	movlw	samplingrate
-	movwf	samplesecs_value            ; to avoid EEPROM access in the ISR
+	movff	samplingrate,samplesecs_value            ; to avoid EEPROM access in the ISR
 	movlw	div_temperature
 	movwf	divisor_temperature         ; load divisors for profile storage
 	movlw	div_deco