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;
|
||||
if (global_state->did_init_filesystem == false) {
|
||||
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;
|
||||
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");
|
||||
|
||||
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();
|
||||
|
||||
@ -306,8 +306,7 @@ int main(int argc, char *argv[])
|
||||
while (true) {
|
||||
err = event_dispatch(global_state->ws);
|
||||
if (err_is_fail(err)) {
|
||||
DEBUG_ERR(err, "in event_dispatch");
|
||||
abort();
|
||||
USER_PANIC_ERR(err, "in event_dispatch");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user