Mercurial > public > hwos_code
comparison src/start.asm @ 249:94bf757690cf
ignore sensor for non-sensor hardware
author | heinrichsweikamp |
---|---|
date | Tue, 17 Mar 2015 12:16:15 +0100 |
parents | afe73e1a0181 |
children | ad62dff7739a |
comparison
equal
deleted
inserted
replaced
248:afe73e1a0181 | 249:94bf757690cf |
---|---|
282 btfsc ble_available ; ble available? | 282 btfsc ble_available ; ble available? |
283 bra restart4 ; Yes, can't be a cR | 283 bra restart4 ; Yes, can't be a cR |
284 btfss rechargeable ; Rechargeable | 284 btfss rechargeable ; Rechargeable |
285 bra restart4 ; No, can't be a cR | 285 bra restart4 ; No, can't be a cR |
286 bsf analog_o2_input ; Set flag for analog | 286 bsf analog_o2_input ; Set flag for analog |
287 | |
288 restart4: | 287 restart4: |
288 ; The hardware_flag is now: | |
289 ; 3: 0x0A | |
290 ; cR: 0x05 | |
291 ; 2 with BLE: 0x11 | |
292 ; 3 with BLE: 0x1A | |
293 | |
289 ; Select high altitude (Fly) mode? | 294 ; Select high altitude (Fly) mode? |
290 movff last_surfpressure_30min+0,sub_b+0 | 295 movff last_surfpressure_30min+0,sub_b+0 |
291 movff last_surfpressure_30min+1,sub_b+1 | 296 movff last_surfpressure_30min+1,sub_b+1 |
292 movlw HIGH high_altitude_threshold | 297 movlw HIGH high_altitude_threshold |
293 movwf sub_a+1 | 298 movwf sub_a+1 |