[P129] Fix: Read inputs during INIT, so first PLUGIN_READ produces actual values instead of 0

This commit is contained in:
Ton Huisman
2026-08-21 16:20:34 +02:00
parent 146904e5be
commit 708bcb3830
+1 -1
View File
@@ -28,7 +28,7 @@ bool P129_data_struct::plugin_init(struct EventStruct *event) {
if (validGpio(_enablePin)) { DIRECT_pinWrite(_enablePin, HIGH); }
plugin_read(event); // Prime data
plugin_readData(event); // Initial read, next PLUGIN_READ takes care of filling the UserVars
return true;
}
return false;