patrickcollins12 / esphome-fan-controller

ESPHome Fan Controller
431 stars 49 forks source link

error: operation on 'write_val' may be undefined [-Werror=sequence-point] #38

Closed tuplink closed 2 months ago

tuplink commented 2 months ago

in proxy_output template the lamda block appears to be incorrect

write_val = state*1.0; <----- this is the line with the issue, i beleive "write_val = " needs removed.

(CONDITION) ? then this : else XXXXX   cant set an undeclared variable till it exists

making this change allows compile

patrickcollins12 commented 2 months ago

Thanks... dumb error... I'm surprised it used to compile