mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-04 17:11:01 +00:00
New detection sensor trigger type value
This commit is contained in:
@@ -108,5 +108,5 @@ bool DetectionSensorModule::hasDetectionEvent()
|
||||
{
|
||||
bool currentState = digitalRead(moduleConfig.detection_sensor.monitor_pin);
|
||||
// LOG_DEBUG("Detection Sensor Module: Current state: %i\n", currentState);
|
||||
return moduleConfig.detection_sensor.detection_triggered_high ? currentState : !currentState;
|
||||
return moduleConfig.detection_sensor.detection_trigger_type ? currentState : !currentState;
|
||||
}
|
||||
Reference in New Issue
Block a user