Update input module comment
@@ -50,11 +50,11 @@ static uint32_t esp_recv_calls;
*/
espr_t
esp_input(const void* data, size_t len) {
- if (!esp.buff.buff) {
+ if (esp.buff.buff == NULL) {
return espERR;
}
esp_buff_write(&esp.buff, data, len); /* Write data to buffer */
- esp_sys_mbox_putnow(&esp.mbox_process, NULL); /* Write empty box */
+ esp_sys_mbox_putnow(&esp.mbox_process, NULL); /* Write empty box, don't care if write fails */
esp_recv_total_len += len; /* Update total number of received bytes */
esp_recv_calls++; /* Update number of calls */
return espOK;
