Update commands.cpp

This commit is contained in:
ElVit 2025-11-24 22:12:40 +01:00 committed by GitHub
parent 42d039969a
commit bf6bebfb19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 14 deletions

View File

@ -148,17 +148,21 @@ namespace esphome
return (byte6 & ~(base << bit)) | (val << bit);
}
uint8_t PanasonicCommand::setDemandControl(size_t input)
{
switch (input)
{
case 0: return 0xEB;
case 1: return 0xB8;
case 2: return 0x85;
case 3: return 0x52;
case 4: return 0x2B;
default: return 0; // do nothing
}
}
} // namespace panasonic_heatpump
} // namespace esphome
uint8_t PanasonicCommand::setDemandControl(size_t input) {
switch (input) {
case 0:
return 0xEB;
case 1:
return 0xB8;
case 2:
return 0x85;
case 3:
return 0x52;
case 4:
return 0x2B;
default:
return 0; // do nothing
}
}
} // namespace panasonic_heatpump
} // namespace esphome