Skip to content

Commit 44c3684

Browse files
Update components/nspanel_easy/hardware.h
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 1fe0450 commit 44c3684

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/nspanel_easy/hardware.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ namespace nspanel_easy {
4242
// Note: hardware_settings_raw is declared as uint8_t in ESPHome YAML with restore_value: true
4343
// Use the helper function below to access it as a HardwareSettings struct
4444

45+
// Note: hardware_settings_raw is declared as uint8_t in ESPHome YAML with restore_value: true
46+
// Use the helper function below to access it as a HardwareSettings struct
47+
48+
inline HardwareSettings from_raw(uint8_t raw);
49+
inline uint8_t to_raw(const HardwareSettings& s);
50+
4551
/**
4652
* `@brief` Get hardware settings from the raw uint8_t
4753
* `@param` raw_value The uint8_t global variable from YAML

0 commit comments

Comments
 (0)