Mercurial > public > hwos_code
comparison src/divemode.asm @ 564:54346c651b6a
bring digital S8 HUD back to life...
author | heinrichsweikamp |
---|---|
date | Mon, 05 Feb 2018 17:59:55 +0100 |
parents | b7eb98dbd800 |
children | b455b31ce022 |
comparison
equal
deleted
inserted
replaced
563:f4faff954816 | 564:54346c651b6a |
---|---|
502 ; -------------------------------------------------------------------------------------- | 502 ; -------------------------------------------------------------------------------------- |
503 | 503 |
504 global calc_deko_divemode_sensor | 504 global calc_deko_divemode_sensor |
505 calc_deko_divemode_sensor: | 505 calc_deko_divemode_sensor: |
506 ; sensor acquisition code | 506 ; sensor acquisition code |
507 btfss s8_digital ; check if we have digital interface to the sensors | 507 btfss s8_digital ; check if we have digital interface to the sensors |
508 bra calc_deko_divemode_sensor_analog ; NO - use analog interface | 508 bra calc_deko_divemode_sensor_analog ; NO - use analog interface |
509 btfss new_s8_data_available ; YES - check if a new data frame was received | 509 btfss new_s8_data_available ; YES - check if a new data frame was received |
510 bra calc_deko_divemode_sensor_common ; NO - use old values | 510 bra calc_deko_divemode_sensor_common ; NO - use old values |
511 call compute_mvolts_for_all_sensors ; YES - compute mV values from digital data | 511 call compute_mvolts_for_all_sensors ; YES - compute mV values from digital data |
512 bra calc_deko_divemode_sensor_common | 512 bra calc_deko_divemode_sensor_common |
513 | 513 |
514 calc_deko_divemode_sensor_analog: | 514 calc_deko_divemode_sensor_analog: |
515 call get_analog_inputs ; TODO: abort when OSTC model does not have analog inputs | 515 call get_analog_inputs ; TODO: abort when OSTC model does not have analog inputs |
516 | 516 |
517 calc_deko_divemode_sensor_common: | 517 calc_deko_divemode_sensor_common: |