comparison src/divemode.asm @ 382:6f3530eb48f9

allow compass bearing on surface
author heinrichsweikamp
date Wed, 23 Sep 2015 17:35:19 +0200
parents e99bb91f6f92
children b075fa71b659
comparison
equal deleted inserted replaced
381:e32f424223fb 382:6f3530eb48f9
1402 call I2C_sleep_compass ; Stop compass 1402 call I2C_sleep_compass ; Stop compass
1403 1403
1404 clrf WREG 1404 clrf WREG
1405 movff WREG,max_pressure+0 ; clear some variables 1405 movff WREG,max_pressure+0 ; clear some variables
1406 movff WREG,max_pressure+1 1406 movff WREG,max_pressure+1
1407 movff WREG,compass_bearing+0
1408 movff WREG,compass_bearing+1
1409
1410 bcf compass_bearing_set
1411 1407
1412 bcf use_agf ; Start with normal GF set 1408 bcf use_agf ; Start with normal GF set
1413 bcf divemode_menu ; clear divemode menu flag 1409 bcf divemode_menu ; clear divemode menu flag
1414 movlw d'1' 1410 movlw d'1'
1415 movwf apnoe_max_pressure+0 1411 movwf apnoe_max_pressure+0