Library for my home monitoring classes and serial communication protocol. It monitors temperature and movement on the mbed application board.
Diff: Communication/Communication.cpp
- Revision:
- 1:2f5a62eb52ad
- Parent:
- 0:3f846fc933a2
- Child:
- 2:84432add9142
--- a/Communication/Communication.cpp Sun Sep 01 23:35:18 2013 +0000 +++ b/Communication/Communication.cpp Tue Sep 03 08:54:55 2013 +0000 @@ -118,11 +118,10 @@ for (int i=0; i<SAMP_SIZE; ++i) { char_sample[i] = mon_get(); } - // FIXME - remove // FIXME - need error checking here on sample. Try // printing it to a string and make sure it will fit in // 7 characters or don't allow it to be set. - printf("Sample = %s\n", char_sample); + // DEBUG printf("Sample = %s\n", char_sample); return atof(char_sample); } @@ -183,8 +182,7 @@ case SET_TEMP_MIN: send_ack(); sample = get_sample(); - // FIXME - remove - printf(" sample = %f\n", sample); + // DEBUG printf(" sample = %f\n", sample); if(temp.set_min(sample)) { send_ack(); }