mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-01-01 04:53:35 +05:00
Compare commits
3 Commits
0bb05006f4
...
06c2ddcf96
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06c2ddcf96 | ||
|
|
8b50ed48c1 | ||
|
|
f212d9d9a8 |
@@ -687,19 +687,17 @@ protected:
|
|||||||
targetMaxModulation = settings.dhw.maxModulation;
|
targetMaxModulation = settings.dhw.maxModulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vars.slave.modulation.max != targetMaxModulation) {
|
if (this->setMaxModulationLevel(targetMaxModulation)) {
|
||||||
if (this->setMaxModulationLevel(targetMaxModulation)) {
|
Log.snoticeln(
|
||||||
Log.snoticeln(
|
FPSTR(L_OT), F("Set max modulation: %hhu%% (response: %hhu%%)"),
|
||||||
FPSTR(L_OT), F("Set max modulation: %hhu%% (response: %hhu%%)"),
|
targetMaxModulation, vars.slave.modulation.max
|
||||||
targetMaxModulation, vars.slave.modulation.max
|
);
|
||||||
);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.swarningln(
|
Log.swarningln(
|
||||||
FPSTR(L_OT), F("Failed set max modulation: %hhu%% (response: %hhu%%)"),
|
FPSTR(L_OT), F("Failed set max modulation: %hhu%% (response: %hhu%%)"),
|
||||||
targetMaxModulation, vars.slave.modulation.max
|
targetMaxModulation, vars.slave.modulation.max
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update modulation level
|
// Update modulation level
|
||||||
|
|||||||
Reference in New Issue
Block a user