dshot: fix clearing out esc status

This commit is contained in:
Peter van der Perk
2024-05-30 04:56:42 -04:00
committed by David Sidrane
parent b0cb697f71
commit f3ef0d6610
6 changed files with 35 additions and 6 deletions
@@ -440,7 +440,7 @@ void up_dshot_trigger(void)
}
// Calc data now since we're not event driven
if(bdshot_recv_mask != 0x0) {
if (bdshot_recv_mask != 0x0) {
up_bdshot_erpm();
bdshot_recv_mask = 0x0;
}
@@ -152,6 +152,12 @@ int up_dshot_init(uint32_t channel_mask, unsigned dshot_pwm_freq, bool enable_bi
return ret_val == OK ? channels_init_mask : ret_val;
}
int up_bdshot_get_erpm(uint8_t channel, int *erpm)
{
// Not implemented
return -1;
}
void up_bdshot_status(void)
{
}