Fix S.BUS decoder to return value even if its just failsafe

This commit is contained in:
Lorenz Meier
2014-01-26 15:30:16 +01:00
parent cc68d11353
commit d1c934233f
-1
View File
@@ -291,7 +291,6 @@ sbus_decode(hrt_abstime frame_time, uint16_t *values, uint16_t *num_values, bool
/* report that we failed to read anything valid off the receiver */
*sbus_failsafe = true;
*sbus_frame_drop = true;
return false;
}
else if (frame[SBUS_FLAGS_BYTE] & (1 << SBUS_FRAMELOST_BIT)) { /* a frame was lost */
/* set a special warning flag