fix(ui): Auto adjust PPM frame length if greater than 8 ch (#3622)
* Auto-adjusts PPM frame length if channel count is greater than 8 channels * added auto adjust for PPM trainer mode on b&w targets * code cleanup
This commit is contained in:
@@ -788,6 +788,12 @@ inline void setDefaultPpmFrameLength(uint8_t moduleIdx)
|
||||
4 * max<int>(0, g_model.moduleData[moduleIdx].channelsCount);
|
||||
}
|
||||
|
||||
inline void setDefaultPpmFrameLengthTrainer()
|
||||
{
|
||||
g_model.trainerData.frameLength =
|
||||
4 * max<int>(0, g_model.trainerData.channelsCount);
|
||||
}
|
||||
|
||||
inline void resetAccessAuthenticationCount()
|
||||
{
|
||||
// the module will reset on mode switch, we need to reset the authentication counter
|
||||
|
||||
Reference in New Issue
Block a user