diff --git a/examples/tutorials/thread_network/11_sensor_ipc/main.c b/examples/tutorials/thread_network/11_sensor_ipc/main.c index f9dd4f2e8..325986722 100644 --- a/examples/tutorials/thread_network/11_sensor_ipc/main.c +++ b/examples/tutorials/thread_network/11_sensor_ipc/main.c @@ -15,6 +15,7 @@ static void sensor_ipc_callback(int pid, int len, int buf, if (len < ((int) sizeof(current_temperature))) { // We do not inform the caller and simply return. We do print a log message: puts("[thread-sensor] ERROR: sensor IPC invoked with too small buffer.\r\n"); + return; } // The buffer is large enough, copy the current temperature into it: