cmd handler stuff

This commit is contained in:
2020-11-16 13:34:36 +01:00
parent 47a9a413f2
commit 9244de5884

View File

@ -64,10 +64,12 @@ void cmdHandlerEngine(void *handle) {
break;
case 2:
coloredMsg(LOG_YELLOW, "che, waiting for established");
//coloredMsg(LOG_YELLOW, "che, waiting for established");
sockState = getSn_SR(CMD_SOCK);
coloredMsg(LOG_YELLOW, "che, socket state is 0x%02x", sockState);
if (sockState != SOCK_LISTEN) {
coloredMsg(LOG_YELLOW, "che, socket state is 0x%02x", sockState);
}
if (sockState == SOCK_ESTABLISHED) {
coloredMsg(LOG_YELLOW, "che, connection is established");