pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT
Dependencies: mbed MMA8451Q USBDevice WakeUp vt100
Fork of afero_node_suntory_2017_06_15 by
Diff: afLib/afLib.cpp
- Revision:
- 5:9d5c7ee80f3b
- Parent:
- 2:dfe671e31221
- Child:
- 6:88cc04eb613a
--- a/afLib/afLib.cpp Wed Jan 25 08:20:47 2017 +0000 +++ b/afLib/afLib.cpp Tue Feb 28 02:09:06 2017 +0000 @@ -166,7 +166,7 @@ break; default: - SERIAL_PRINT_ERR("%s\n","loop: request type!"); + SERIAL_PRINT_DBG_ASR("%s\n","loop: request type!"); } } @@ -309,7 +309,7 @@ _writeCmd = new Command(requestId, MSG_TYPE_GET, attrId); if (!_writeCmd->isValid()) { - SERIAL_PRINT_ERR("getAttribute invalid command:"); + SERIAL_PRINT_DBG_ASR("getAttribute invalid command:"); _writeCmd->dumpBytes(); _writeCmd->dump(); delete (_writeCmd); @@ -337,7 +337,7 @@ } _writeCmd = new Command(requestId, MSG_TYPE_SET, attrId, valueLen, value); if (!_writeCmd->isValid()) { - SERIAL_PRINT_ERR("setAttributeComplete invalid command:"); + SERIAL_PRINT_DBG_ASR("setAttributeComplete invalid command:"); _writeCmd->dumpBytes(); _writeCmd->dump(); delete (_writeCmd); @@ -366,7 +366,7 @@ _writeCmd = new Command(requestId, MSG_TYPE_UPDATE, attrId, status, 3 /* MCU Set it */, valueLen, value); if (!_writeCmd->isValid()) { - SERIAL_PRINT_ERR("updateAttribute invalid command:"); + SERIAL_PRINT_DBG_ASR("updateAttribute invalid command:"); _writeCmd->dumpBytes(); _writeCmd->dump(); delete (_writeCmd); @@ -456,7 +456,7 @@ if (syncRetries > 0 && syncRetries < MAX_SYNC_RETRIES && t.read_ms() - lastSync > 1000) { updateIntsPending(1); } else if (syncRetries >= MAX_SYNC_RETRIES) { - SERIAL_PRINT_ERR("No response from ASR-1 - does profile have MCU enabled?\n"); + SERIAL_PRINT_DBG_ASR("No response from ASR-1 - does profile have MCU enabled?\n"); syncRetries = 0; _state = STATE_IDLE; } @@ -657,7 +657,7 @@ uint8_t cmd = bytes[index++]; if (cmd != 0x30 && cmd != 0x31) { - SERIAL_PRINT_ERR("exchangeStatus bad cmd: 0x%02x\n",cmd); + SERIAL_PRINT_DBG_ASR("exchangeStatus bad cmd: 0x%02x\n",cmd); result = afERROR_INVALID_COMMAND; } @@ -706,7 +706,7 @@ printTransaction((uint8_t*)rbytes,len+1); uint8_t cmd = rbytes[index++]; if (cmd != 0x30 && cmd != 0x31) { - SERIAL_PRINT_ERR("writeStatus bad cmd: 0x%02x\n",cmd); + SERIAL_PRINT_DBG_ASR("writeStatus bad cmd: 0x%02x\n",cmd); result = afERROR_INVALID_COMMAND; }