mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-11 09:04:53 +00:00
[P129] Fix: Read inputs during INIT, so first PLUGIN_READ produces actual values instead of 0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user