Mercurial > public > hwos_code
comparison src/testmode.asm @ 91:917393caf559
minor, always re-init compass in calibration loop
author | heinrichsweikamp |
---|---|
date | Tue, 15 Apr 2014 15:08:16 +0200 |
parents | 3274e87fd027 |
children | f2201aa374db |
comparison
equal
deleted
inserted
replaced
90:3274e87fd027 | 91:917393caf559 |
---|---|
165 | 165 |
166 | 166 |
167 global compass_calibration_loop | 167 global compass_calibration_loop |
168 compass_calibration_loop: ; Compass calibration | 168 compass_calibration_loop: ; Compass calibration |
169 bsf no_sensor_int ; No Sensor ISR | 169 bsf no_sensor_int ; No Sensor ISR |
170 call I2C_sleep_accelerometer ; Stop accelerometer | |
171 call I2C_sleep_compass ; Stop compass | |
170 call TFT_ClearScreen | 172 call TFT_ClearScreen |
171 | |
172 ; Mask | 173 ; Mask |
173 WIN_COLOR color_greenish | 174 WIN_COLOR color_greenish |
174 WIN_SMALL .16,.0 | 175 WIN_SMALL .16,.0 |
175 STRCPY_TEXT_PRINT tCompassMenu | 176 STRCPY_TEXT_PRINT tCompassMenu |
176 btfss switch_right2 ; wait until button is released | 177 btfss switch_right2 ; wait until button is released |