imxrt: add up_bdshot_channel_capture_supported

This commit is contained in:
Jacob Dahl 2026-01-27 20:34:48 -09:00
parent 6f8ba007d1
commit ac5fba4c28

View File

@ -535,6 +535,15 @@ int up_bdshot_get_extended_telemetry(uint8_t channel, int type, uint8_t *value)
return -1;
}
int up_bdshot_channel_capture_supported(uint8_t channel)
{
if (channel >= DSHOT_TIMERS) {
return 0;
}
return dshot_inst[channel].init && dshot_inst[channel].bdshot;
}
int up_bdshot_channel_online(uint8_t channel)
{
if (channel < DSHOT_TIMERS) {