diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index 13e9be3d21..9eb07530fb 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2012-2017 PX4 Development Team. All rights reserved. + * Copyright (c) 2012-2018 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -630,12 +630,8 @@ Sensors::run() * if a gyro fails) */ int pret = px4_poll(&poll_fds, 1, 50); - /* if pret == 0 it timed out - periodic check for should_exit(), etc. */ - if (pret == 0) { - continue; - } - - + /* If pret == 0 it timed out but we should still do all checks and potentially copy + * other gyros. */ /* this is undesirable but not much we can do - might want to flag unhappy status */ if (pret < 0) {