[PLUGIN_INIT] Fix remaining plugins missing the PLUGIN_INIT case

This commit is contained in:
Ton Huisman
2021-08-01 23:37:03 +02:00
parent 4220c6d34b
commit 08fb45f38e
10 changed files with 60 additions and 0 deletions
+6
View File
@@ -86,6 +86,12 @@ boolean Plugin_005(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
success = P005_do_plugin_read(event);
+6
View File
@@ -48,6 +48,12 @@ boolean Plugin_007(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
uint8_t unit = (CONFIG_PORT - 1) / 4;
+6
View File
@@ -97,6 +97,12 @@ boolean Plugin_010(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
uint8_t address = PCONFIG(0);
+6
View File
@@ -66,6 +66,12 @@ boolean Plugin_011(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
UserVar[event->BaseVarIndex] = Plugin_011_Read(PCONFIG(0), CONFIG_PORT);
+6
View File
@@ -130,6 +130,12 @@ boolean Plugin_030(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
uint8_t idx = PCONFIG(0) & 0x1; // Addresses are 0x76 and
+6
View File
@@ -50,6 +50,12 @@ boolean Plugin_034(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
uint8_t dht_dat[5];
+6
View File
@@ -121,6 +121,12 @@ boolean Plugin_047(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
if (P047_SENSOR_SLEEP) {
+6
View File
@@ -69,6 +69,12 @@ boolean Plugin_051(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
AM2320 th;
+6
View File
@@ -50,6 +50,12 @@ boolean Plugin_072(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
uint8_t hdc1080_msb, hdc1080_lsb;
+6
View File
@@ -155,6 +155,12 @@ boolean Plugin_086(uint8_t function, struct EventStruct *event, String& string)
break;
}
case PLUGIN_INIT:
{
success = true;
break;
}
case PLUGIN_READ:
{
for (uint8_t x=0; x<PLUGIN_086_VALUE_MAX;x++)