void MySensor::sleep(unsigned long ms) { // Let serial prints finish (debug, log etc) Serial.flush(); RF24::powerDown(); continueTimer = true; internalSleep(ms); }
void MySensor::sleep(unsigned long ms) { #ifndef __Raspberry_Pi // Let serial prints finish (debug, log etc) Serial.flush(); #endif RF24::powerDown(); pinIntTrigger = 0; internalSleep(ms); }