comparison Discovery/Src/tMenuEditHardware.c @ 746:7e84ae1513b6

Code cleanup sensors under development: Deactivated compile option for Sentinel and CO2 sensor. Added missing compile switches.
author Ideenmodellierer
date Tue, 21 Feb 2023 21:19:31 +0100
parents b392524753fb
children be25ab2d902c
comparison
equal deleted inserted replaced
745:b392524753fb 746:7e84ae1513b6
325 if(pSettings->ppo2sensors_source != O2_SENSOR_SOURCE_ANADIG) 325 if(pSettings->ppo2sensors_source != O2_SENSOR_SOURCE_ANADIG)
326 { 326 {
327 pSettings->ppo2sensors_source = O2_SENSOR_SOURCE_DIGITAL; 327 pSettings->ppo2sensors_source = O2_SENSOR_SOURCE_DIGITAL;
328 } 328 }
329 break; 329 break;
330 #ifdef ENABLE_SENTINEL_MODE
330 case SENSOR_SENTINEL: pSettings->ppo2sensors_source = O2_SENSOR_SOURCE_SENTINEL; 331 case SENSOR_SENTINEL: pSettings->ppo2sensors_source = O2_SENSOR_SOURCE_SENTINEL;
331 break; 332 break;
333 #endif
332 default: 334 default:
333 break; 335 break;
334 } 336 }
335 } 337 }
336 openEdit_O2Sensors(); 338 openEdit_O2Sensors();
416 snprintf(strSensorId, 20,"%01.3fV", get_HUD_battery_voltage_V()); 418 snprintf(strSensorId, 20,"%01.3fV", get_HUD_battery_voltage_V());
417 write_label_var( 480, 800, ME_Y_LINE4, &FontT48, strSensorId); 419 write_label_var( 480, 800, ME_Y_LINE4, &FontT48, strSensorId);
418 } 420 }
419 else 421 else
420 { 422 {
421 if((pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_ANALOG) || (pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_ANADIG)|| (pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_SENTINEL)) 423 if((pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_ANALOG) || (pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_ANADIG)
424 #ifdef ENABLE_CO2_SUPPORT
425 || (pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_SENTINEL)
426 #endif
427 )
422 { 428 {
423 strSensorId[0] = TXT_2BYTE; 429 strSensorId[0] = TXT_2BYTE;
424 strSensorId[1] = TXT2BYTE_O2Calib; 430 strSensorId[1] = TXT2BYTE_O2Calib;
425 strSensorId[2] = 0; 431 strSensorId[2] = 0;
426 write_label_var( 30, 340, ME_Y_LINE4, &FontT48, strSensorId); 432 write_label_var( 30, 340, ME_Y_LINE4, &FontT48, strSensorId);
471 477
472 void openEdit_O2Sensors(void) 478 void openEdit_O2Sensors(void)
473 { 479 {
474 SSettings *pSettings = settingsGetPointer(); 480 SSettings *pSettings = settingsGetPointer();
475 uint8_t sensorActive[3]; 481 uint8_t sensorActive[3];
476 uint8_t text[3]; 482 char text[3];
477 483
478 set_globalState(StMHARD3_Sensors); 484 set_globalState(StMHARD3_Sensors);
479 resetMenuEdit(CLUT_MenuPageHardware); 485 resetMenuEdit(CLUT_MenuPageHardware);
480 486
481 sensorActive[0] = 1; 487 sensorActive[0] = 1;