Fixes for cross-platform build.

This commit is contained in:
2019-06-26 13:02:45 +01:00
parent 605fa0b691
commit 06d7e8e9a8
11 changed files with 155 additions and 34 deletions

View File

@@ -35,9 +35,9 @@ bool getLEDState()
return ledState();
}
void disableACTTrigger(bool nowDisabled)
void disableACTTrigger([[maybe_unused]] bool nowDisabled)
{
#if ARCHITECTURE == RASPBERRY_PI
#ifdef LEDS
ofstream trigFile{ "/sys/class/leds/led0/trigger", ofstream::out | ofstream::trunc };
if (!trigFile)
@@ -48,9 +48,9 @@ void disableACTTrigger(bool nowDisabled)
#endif
}
void enableACTLED(bool nowOn)
void enableACTLED([[maybe_unused]] bool nowOn)
{
#if ARCHITECTURE == RASPBERRY_PI
#ifdef LEDS
if (nowOn == getLEDState())
return;