Skip to content

Commit

Permalink
Remove unnecessary hook and apply code style
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Dec 17, 2019
1 parent 5da57bf commit 3642d2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions esp_at_lib/src/esp/esp_timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ espi_get_from_mbox_with_timeout_checks(esp_sys_mbox_t* b, void** m, uint32_t tim
return esp_sys_mbox_get(b, m, timeout); /* Get entry from message queue */
}
wait_time = get_next_timeout_diff(); /* Get time to wait for next timeout execution */
if (!wait_time || esp_sys_mbox_get(b, m, wait_time) == ESP_SYS_TIMEOUT) {
ESP_THREAD_PROCESS_HOOK(); /* Process thread hook */
if (wait_time == 0 || esp_sys_mbox_get(b, m, wait_time) == ESP_SYS_TIMEOUT) {
esp_core_lock();
process_next_timeout(); /* Process with next timeout */
esp_core_unlock();
Expand Down

0 comments on commit 3642d2c

Please sign in to comment.