Skip to content

Commit

Permalink
Fix types for set_var_int
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardtfn committed Nov 29, 2024
1 parent 334163e commit 69925c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/nspanel_esphome_standard_hw_relays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ script:
- lambda: |-
if (component == "relay_settings" and val > 0) {
uint8_t val_uint = static_cast<uint8_t>(val);
ESP_LOGW("script.set_var_int (HW Relays)", "Got relay's settings: %f -> %" PRIu8, val, val_uint);
ESP_LOGW("script.set_var_int (HW Relays)", "Got relay's settings: %" PRIu8, val_uint);
// Relay 1 local control enabled (Bit 0)
id(relay1_local) = (val_uint & (1 << 0)) != 0;
Expand Down

0 comments on commit 69925c4

Please sign in to comment.