Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditHardware.c @ 930:25948e805406 Evo_2_23
DevBugfix Co2 sensor details:
The CO2 sensor could not be selected to enter the details menu. This has been corrected and the enable / disable state is shown in the sensor overview.
author | Ideenmodellierer |
---|---|
date | Tue, 03 Dec 2024 20:24:06 +0100 |
parents | 875933272056 |
children | c6b858f2e025 |
comparison
equal
deleted
inserted
replaced
929:63c340abd70e | 930:25948e805406 |
---|---|
587 } | 587 } |
588 | 588 |
589 if(((pSettings->ext_sensor_map[0] < SENSOR_OPTIC) || (pSettings->ext_sensor_map[0] >= SENSOR_TYPE_O2_END))) | 589 if(((pSettings->ext_sensor_map[0] < SENSOR_OPTIC) || (pSettings->ext_sensor_map[0] >= SENSOR_TYPE_O2_END))) |
590 { | 590 { |
591 pSettings->ppo2sensors_deactivated |= 1; | 591 pSettings->ppo2sensors_deactivated |= 1; |
592 if(pSettings->ext_sensor_map[0] == SENSOR_CO2M) | |
593 { | |
594 write_field_on_off(StMHARD3_O2_Sensor1, 30, 95, ME_Y_LINE1, &FontT48, "", pSettings->co2_sensor_active); | |
595 } | |
592 } | 596 } |
593 else | 597 else |
594 { | 598 { |
595 write_field_on_off(StMHARD3_O2_Sensor1, 30, 95, ME_Y_LINE1, &FontT48, "", sensorActive[0]); | 599 write_field_on_off(StMHARD3_O2_Sensor1, 30, 95, ME_Y_LINE1, &FontT48, "", sensorActive[0]); |
596 if(firstSensorId == 0) | 600 if(firstSensorId == 0) |
599 } | 603 } |
600 } | 604 } |
601 if(((pSettings->ext_sensor_map[1] < SENSOR_OPTIC) || (pSettings->ext_sensor_map[1] >= SENSOR_TYPE_O2_END))) | 605 if(((pSettings->ext_sensor_map[1] < SENSOR_OPTIC) || (pSettings->ext_sensor_map[1] >= SENSOR_TYPE_O2_END))) |
602 { | 606 { |
603 pSettings->ppo2sensors_deactivated |= 2; | 607 pSettings->ppo2sensors_deactivated |= 2; |
608 if(pSettings->ext_sensor_map[1] == SENSOR_CO2M) | |
609 { | |
610 write_field_on_off(StMHARD3_O2_Sensor2, 30, 95, ME_Y_LINE2, &FontT48, "", pSettings->co2_sensor_active); | |
611 } | |
604 } | 612 } |
605 else | 613 else |
606 { | 614 { |
607 write_field_on_off(StMHARD3_O2_Sensor2, 30, 95, ME_Y_LINE2, &FontT48, "", sensorActive[1]); | 615 write_field_on_off(StMHARD3_O2_Sensor2, 30, 95, ME_Y_LINE2, &FontT48, "", sensorActive[1]); |
608 if(firstSensorId == 0) | 616 if(firstSensorId == 0) |
611 } | 619 } |
612 } | 620 } |
613 if(((pSettings->ext_sensor_map[2] < SENSOR_OPTIC) || (pSettings->ext_sensor_map[2] >= SENSOR_TYPE_O2_END))) | 621 if(((pSettings->ext_sensor_map[2] < SENSOR_OPTIC) || (pSettings->ext_sensor_map[2] >= SENSOR_TYPE_O2_END))) |
614 { | 622 { |
615 pSettings->ppo2sensors_deactivated |= 4; | 623 pSettings->ppo2sensors_deactivated |= 4; |
624 if(pSettings->ext_sensor_map[2] == SENSOR_CO2M) | |
625 { | |
626 write_field_on_off(StMHARD3_O2_Sensor3, 30, 95, ME_Y_LINE3, &FontT48, "", pSettings->co2_sensor_active); | |
627 } | |
616 } | 628 } |
617 else | 629 else |
618 { | 630 { |
619 write_field_on_off(StMHARD3_O2_Sensor3, 30, 95, ME_Y_LINE3, &FontT48, "", sensorActive[2]); | 631 write_field_on_off(StMHARD3_O2_Sensor3, 30, 95, ME_Y_LINE3, &FontT48, "", sensorActive[2]); |
620 if(firstSensorId == 0) | 632 if(firstSensorId == 0) |