mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
fix: revert default value of slave max modulation; always set max modulation level
Baxi Ampera resets the maximum modulation level to 0 when the heating is turned off
This commit is contained in:
@@ -687,7 +687,6 @@ protected:
|
||||
targetMaxModulation = settings.dhw.maxModulation;
|
||||
}
|
||||
|
||||
if (vars.slave.modulation.max != targetMaxModulation) {
|
||||
if (this->setMaxModulationLevel(targetMaxModulation)) {
|
||||
Log.snoticeln(
|
||||
FPSTR(L_OT), F("Set max modulation: %hhu%% (response: %hhu%%)"),
|
||||
@@ -700,7 +699,6 @@ protected:
|
||||
targetMaxModulation, vars.slave.modulation.max
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Update modulation level
|
||||
if (
|
||||
|
||||
@@ -328,7 +328,7 @@ struct Variables {
|
||||
struct {
|
||||
uint8_t current = 0;
|
||||
uint8_t min = 0;
|
||||
uint8_t max = 0;
|
||||
uint8_t max = 100;
|
||||
} modulation;
|
||||
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user