Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(modem): Fixed inconsistent state on data after OK
If we received response in two chunks and the first one completes the command (result=OK or FAIL), and the second chunk pre-empts command processing, then we performed processing again rewritting the result back to TIMEOUT. This would invalidate the command, but also causes an exception: ESP_MODEM_THROW_IF_ERROR(ESP_ERR_INVALID_STATE) Fixed by checking if the processing already finished in process_line(). Closes #426
- Loading branch information