Customized SNICInterface
Fork of NySNICInterface by
Revision 45:680ab480d0e3, committed 2015-02-10
- Comitter:
- komoritan
- Date:
- Tue Feb 10 12:07:42 2015 +0000
- Parent:
- 44:91038c77cdc5
- Commit message:
- Finished
Changed in this revision
SNIC_WifiInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SNIC_WifiInterface.cpp Thu Nov 20 09:08:11 2014 +0000 +++ b/SNIC_WifiInterface.cpp Tue Feb 10 12:07:42 2015 +0000 @@ -54,6 +54,7 @@ if( payload_buf_p == NULL ) { DEBUG_PRINT("snic_init payload_buf_p NULL\r\n"); + printf("initial failed1\n"); return -1; } @@ -73,20 +74,25 @@ // Send uart command request snic_core_p->sendUart( command_len, command_array_p ); + int ret; + // Wait UART response ret = uartCmdMgr_p->wait(); if( ret != 0 ) { DEBUG_PRINT( "snic_init failed\r\n" ); snic_core_p->freeCmdBuf( payload_buf_p ); + printf("initial failed2\n"); return -1; } + if( uartCmdMgr_p->getCommandStatus() != 0 ) { DEBUG_PRINT("snic_init status:%02x\r\n", uartCmdMgr_p->getCommandStatus()); snic_core_p->freeCmdBuf( payload_buf_p ); + printf("initial failed3\n"); return -1; } snic_core_p->freeCmdBuf( payload_buf_p );