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
+6
View File
@@ -145,10 +145,16 @@ inline uint8_t modulePortGetType(const etx_module_driver_t& d) {
}
inline const etx_serial_driver_t* modulePortGetSerialDrv(const etx_module_driver_t& d) {
#if defined(SIMU)
if (d.port == nullptr) return nullptr;
#endif
return d.port->drv.serial;
}
inline const etx_timer_driver_t* modulePortGetTimerDrv(const etx_module_driver_t& d) {
#if defined(SIMU)
if (d.port == nullptr) return nullptr;
#endif
return d.port->drv.timer;
}