usermods: Remove #pragma once from cpps

This commit is contained in:
Will Miles
2025-01-17 00:50:02 +00:00
parent 15edfcd088
commit 193926c795
53 changed files with 3 additions and 102 deletions

View File

@@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#ifndef PIR_SENSOR_PIN
@@ -571,7 +569,7 @@ bool PIRsensorSwitch::readFromConfig(JsonObject &root)
// use "return !top["newestParameter"].isNull();" when updating Usermod with new features
return !(pins.isNull() || pins.size() != PIR_SENSOR_MAX_SENSORS);
}
static PIRsensorSwitch pir_sensor_switch;
static PIRsensorSwitch pir_sensor_switch;
REGISTER_USERMOD(pir_sensor_switch);