comparison Discovery/Src/tMenuEditHardware.c @ 673:d7c5d592076b Betatest

Show 98% in case of Oxygen as the calibrating gas See #define O2_CALIB_FRACTION_O2 (0.98F)
author heinrichsweikamp
date Wed, 30 Mar 2022 18:00:21 +0200
parents 1f665e31aca2
children 4dd487b407f7
comparison
equal deleted inserted replaced
666:12d029f38430 673:d7c5d592076b
381 if(settingsGetPointer()->ppo2sensors_source == O2_SENSOR_SOURCE_ANALOG) 381 if(settingsGetPointer()->ppo2sensors_source == O2_SENSOR_SOURCE_ANALOG)
382 { 382 {
383 write_label_fix( 30, 800, ME_Y_LINE4, &FontT48, TXT2BYTE_O2Calib); 383 write_label_fix( 30, 800, ME_Y_LINE4, &FontT48, TXT2BYTE_O2Calib);
384 write_label_var( 400, 800, ME_Y_LINE4, &FontT48, "\016\016 %\017"); 384 write_label_var( 400, 800, ME_Y_LINE4, &FontT48, "\016\016 %\017");
385 385
386 write_field_toggle(StMHARD3_O2_Calibrate, 400, 800, ME_Y_LINE4, &FontT48, "", 21, 100); 386 write_field_toggle(StMHARD3_O2_Calibrate, 400, 800, ME_Y_LINE4, &FontT48, "", 21, 98);
387 } 387 }
388 388
389 text[0] = TXT_Fallback; 389 text[0] = TXT_Fallback;
390 text[1] = 1; 390 text[1] = 1;
391 391
515 } 515 }
516 if(action == ACTION_BUTTON_NEXT) 516 if(action == ACTION_BUTTON_NEXT)
517 { 517 {
518 if(O2_calib_gas == 21) 518 if(O2_calib_gas == 21)
519 { 519 {
520 O2_calib_gas = 100; 520 O2_calib_gas = 98;
521 } 521 }
522 else 522 else
523 { 523 {
524 O2_calib_gas = 21; 524 O2_calib_gas = 21;
525 } 525 }