diff --git a/libraries/MySensors/examples/MysensorMicro/MysensorMicro.ino b/libraries/MySensors/examples/MysensorMicro/MysensorMicro.ino index 5c8ca71..7c5a074 100644 --- a/libraries/MySensors/examples/MysensorMicro/MysensorMicro.ino +++ b/libraries/MySensors/examples/MysensorMicro/MysensorMicro.ino @@ -61,6 +61,7 @@ float lastTemperature = -100; int lastHumidity = -100; long lastBattery = -100; +bool highfreq = true; void setup() { @@ -110,7 +111,7 @@ void loop() { // When we wake up the 5th time after power on, switch to 1Mhz clock // This allows us to print debug messages on startup (as serial port is dependend on oscilator settings). - if (measureCount == 5) switchClock(1< FORCE_TRANSMIT_INTERVAL) { // force a transmission forceTransmit = true; @@ -208,6 +209,7 @@ void switchClock(unsigned char clk) CLKPR = 1<