fix(color): Scroll order for 'FlySky' module options (#3479)

* Fix scroll order for module options when 'FlySky' module type selected.
Fix simulator crash issues related to FlySky module.

* Fix more simulator crashes
This commit is contained in:
philmoz
2023-04-18 11:01:26 +10:00
committed by GitHub
parent 95cfe47ad8
commit 54e0d350e8
5 changed files with 147 additions and 55 deletions
+2
View File
@@ -264,9 +264,11 @@ void Transport::enqueue(COMMAND command, FRAME_TYPE frameType, bool useData,
void Transport::sendBuffer()
{
#if !defined(SIMU)
auto drv = modulePortGetSerialDrv(mod_st->tx);
auto ctx = modulePortGetCtx(mod_st->tx);
drv->sendBuffer(ctx, (uint8_t*)trsp.trsp_buffer, trsp.getFrameSize());
#endif
}
bool Transport::processQueue()