feat: trainer SBUS processing in IDLE IRQ (#5672)
This commit is contained in:
@@ -218,8 +218,10 @@ static void serialSetCallBacks(int mode, void* ctx, const etx_serial_port_t* por
|
||||
#endif
|
||||
|
||||
case UART_MODE_SBUS_TRAINER:
|
||||
sbusSetAuxGetByte(ctx, getByte);
|
||||
// TODO: setRxCb (see MODE_LUA)
|
||||
sbusSetReceiveCtx(ctx, drv);
|
||||
if (drv && drv->setIdleCb) {
|
||||
drv->setIdleCb(ctx, sbusAuxFrameReceived, nullptr);
|
||||
}
|
||||
break;
|
||||
|
||||
case UART_MODE_TELEMETRY:
|
||||
|
||||
Reference in New Issue
Block a user