Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
Diff: boxAlarm.cpp
- Revision:
- 22:b66e36356dd4
- Parent:
- 19:1f623070b9dd
diff -r 62316df0c24b -r b66e36356dd4 boxAlarm.cpp
--- a/boxAlarm.cpp Tue Oct 13 21:22:27 2015 +0000
+++ b/boxAlarm.cpp Mon Oct 19 20:34:15 2015 +0000
@@ -15,7 +15,7 @@
void BoxAlarm::stateChanged(){
bool state = boxSensor;
ledBox = state;
- printf("[BOX ALARM] STATE = %d\r\n", state);
+ DEBUG(printf("[BOX ALARM] STATE = %d\r\n", state));
alarm.writeAlarm(ALARME_CAIXA, state, getAlarmState(ALARME_CAIXA));
}
@@ -23,7 +23,7 @@
bool state = boxSensor;
ledBox = state;
if(state != getAlarmState(ALARME_CAIXA)){
- printf("[BOX ALARM] STATE = %d\r\n", state);
+ DEBUG(printf("[BOX ALARM] STATE = %d\r\n", state));
alarm.writeAlarm(ALARME_CAIXA, state, getAlarmState(ALARME_CAIXA));
}
}
