Mercurial > public > hwos_code
diff src/adc_lightsensor.asm @ 343:34e2f5bdc5a2
BUGFIX: Rotate button sensitivity with screen (OSTC 2 and cR)
TODO: Fix entry time when dive was during midnight
author | heinrichsweikamp |
---|---|
date | Mon, 20 Jul 2015 12:43:42 +0200 |
parents | 653a3ab08062 |
children | 043890f06bce |
line wrap: on
line diff
--- a/src/adc_lightsensor.asm Wed Jul 15 15:39:35 2015 +0200 +++ b/src/adc_lightsensor.asm Mon Jul 20 12:43:42 2015 +0200 @@ -439,9 +439,15 @@ global piezo_config ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) piezo_config: ; Settings between 20 and 200 movff opt_cR_button_right,WREG; right button + btfsc flip_screen ; 180° rotation ? + movff opt_cR_button_left,WREG ; Yes, left button rcall piezo_config_tx + movff opt_cR_button_left,WREG ; left button + btfsc flip_screen ; 180° rotation ? + movff opt_cR_button_right,WREG; Yes, right button rcall piezo_config_tx + movlw .200 ; reserved rcall piezo_config_tx movlw .200 ; reserved