diff --git a/app/src/studio/uart_rpc_interface.c b/app/src/studio/uart_rpc_interface.c index 21bc3bebf403..cd05b55af9de 100644 --- a/app/src/studio/uart_rpc_interface.c +++ b/app/src/studio/uart_rpc_interface.c @@ -111,7 +111,7 @@ static void serial_cb(const struct device *dev, void *user_data) { static int uart_rpc_interface_init(void) { if (!device_is_ready(uart_dev)) { LOG_ERR("UART device not found!"); - return 0; + return -ENODEV; } /* configure interrupt and callback to receive data */