|
@@ -409,7 +409,7 @@ shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t handle,
|
|
|
break;
|
|
|
|
|
|
case STATE_GET_PACKET_TYPE:
|
|
|
- packetType = data[headerCounter];
|
|
|
+ packetType = (shellmatta_transport_packet_t)data[headerCounter];
|
|
|
break;
|
|
|
|
|
|
case STATE_GET_PAYLOAD_LENGTH:
|
|
@@ -455,7 +455,7 @@ shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t handle,
|
|
|
if (SHELLMATTA_ERROR == ret)
|
|
|
{
|
|
|
shellmatta_reset_transport();
|
|
|
- utils_writeEcho(handle, "crc error\r\n", 11);
|
|
|
+ utils_writeEcho(inst, "crc error\r\n", 11);
|
|
|
utils_terminateInput(inst);
|
|
|
return SHELLMATTA_OK;
|
|
|
}
|