fmartinou / teleinfo2mqtt

Publish teleinfo to mqtt topics
https://fmartinou.github.io/teleinfo2mqtt
MIT License
64 stars 17 forks source link

fix frame object never reset in standard mode #63

Closed madmatah closed 9 months ago

madmatah commented 10 months ago

Small fix : I noticed that in standard mode, the frame is never reset.

isFrameEnd() and isFrameStart() are based on the same label. And since isFrameEnd() contains a return when truthy, the code handling the frame reset is never called.

fmartinou commented 9 months ago

Thanks for the fix; LGTM! 👍