Commit ae64b0f
committed
fix: initialize gpio-switch state to off on startup
s.state was never set when the initial value is "off" (the default),
leaving it as an empty string. Querying state before the first on/off
command printed "Current state: " with no value.
Signed-off-by: Fabian Wienand <fabian.wienand@blindspot.software>1 parent 2d61fc9 commit ae64b0f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| |||
0 commit comments