diff --git a/examples/tutorials/thread_network/02_sensor_final/main.c b/examples/tutorials/thread_network/02_sensor_final/main.c index 3a92056a7..374489d16 100644 --- a/examples/tutorials/thread_network/02_sensor_final/main.c +++ b/examples/tutorials/thread_network/02_sensor_final/main.c @@ -19,6 +19,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: