remove DEBUG_ERR calls from shelly
This commit is contained in:
parent
3b8c38723f
commit
e0272d15e8
@ -29,7 +29,7 @@ static void init_fs_on_demand(void) {
|
|||||||
errval_t err;
|
errval_t err;
|
||||||
if (global_state->did_init_filesystem == false) {
|
if (global_state->did_init_filesystem == false) {
|
||||||
err = filesystem_init();
|
err = filesystem_init();
|
||||||
if (err_is_fail(err)) DEBUG_ERR(err, "Failed to init filesystem");
|
if (err_is_fail(err)) shelly_write_str("Failed to init filesystem\n\r");
|
||||||
global_state->did_init_filesystem = true;
|
global_state->did_init_filesystem = true;
|
||||||
SHELLY_DEBUG("initialized filesystem\n");
|
SHELLY_DEBUG("initialized filesystem\n");
|
||||||
}
|
}
|
||||||
@ -111,7 +111,7 @@ static void handle_lpuart_interrupt(void * arg) {
|
|||||||
if (err_is_fail(err)) USER_PANIC_ERR(err, "while trying to write string");
|
if (err_is_fail(err)) USER_PANIC_ERR(err, "while trying to write string");
|
||||||
|
|
||||||
err = handle_shelly_cmd(global_state->buf, global_state->buffer_i);
|
err = handle_shelly_cmd(global_state->buf, global_state->buffer_i);
|
||||||
if (err_is_fail(err)) DEBUG_ERR(err, "while running command");
|
if (err_is_fail(err)) shelly_write_str("failed to run command :(\n\r");
|
||||||
|
|
||||||
shelly_reset_buffer();
|
shelly_reset_buffer();
|
||||||
|
|
||||||
@ -306,8 +306,7 @@ int main(int argc, char *argv[])
|
|||||||
while (true) {
|
while (true) {
|
||||||
err = event_dispatch(global_state->ws);
|
err = event_dispatch(global_state->ws);
|
||||||
if (err_is_fail(err)) {
|
if (err_is_fail(err)) {
|
||||||
DEBUG_ERR(err, "in event_dispatch");
|
USER_PANIC_ERR(err, "in event_dispatch");
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user