ir-puck
Dependencies: Puck IRSender mbed
Fork of ir-puck by
Diff: IR.cpp
- Revision:
- 10:35d78d589580
- Parent:
- 5:3642c0af497e
- Child:
- 11:5eef3c1e783e
--- a/IR.cpp Wed Jul 23 14:25:14 2014 +0000 +++ b/IR.cpp Thu Jul 24 09:30:43 2014 +0000 @@ -2,6 +2,9 @@ #include "IR.h" #include "TxIR.hpp" +#define LOG_LEVEL_ERROR +#include "Log.h" + #define WORD(x, i) ((x)[(i)] << 8 | (x)[(i) + 1]) TxIR txir(p14); @@ -47,7 +50,7 @@ return; } - px.printf("Going to fire.\n"); + LOG_INFO("Going to fire.\n"); int raw_codes_length = 67; unsigned raw_codes[raw_codes_length]; raw_codes[0] = WORD(header, 0); @@ -70,14 +73,14 @@ } raw_codes[66] = WORD(ptrail, 0); - px.printf("Full sequence received: [%i", raw_codes[0]); + LOG_INFO("Full sequence received: [%i", raw_codes[0]); for (int i=1; i<67; i++) { px.printf(", %i", raw_codes[i]); } - px.printf("]\n"); + LOG_INFO("]\n"); txir.txSeq(26, 67, raw_codes); - px.printf("Wrote message :)\n"); + LOG_INFO("Wrote message :)\n"); } \ No newline at end of file