Skip to content

Minor tweaks to make the code play nice on other platforms - #1

Merged
rbomze merged 2 commits into
rbomze:detectionSensorSleepfrom
Columbo818:detectionSensorSleep
Nov 26, 2025
Merged

Minor tweaks to make the code play nice on other platforms#1
rbomze merged 2 commits into
rbomze:detectionSensorSleepfrom
Columbo818:detectionSensorSleep

Conversation

@Columbo818

Copy link
Copy Markdown
Collaborator
  • Moved the import of sleep.h inside of a conditional check to ensure platform compatability.
  • Removed the explicit priority settings for nodes not in the SENSOR role - we dont want to affect other roles.

Relocates the conditional setting of nRFSenseSleep for NRF52 architecture from runOnce() to the header section, ensuring it is set earlier in the module lifecycle. This change means that the sleep lib is only imported on supported platforms, reducing binary size on other platforms
Eliminated the explicit setting of BACKGROUND priority for non-sensor devices in sendCurrentStateMessage. This would otherwise affect all nodes using the DetectionSensor module in roles other than Sensor.
@rbomze
rbomze merged commit dd9eef3 into rbomze:detectionSensorSleep Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants