Module options were read instead of write
This commit is contained in:
@@ -27,10 +27,13 @@ extern uint8_t g_moduleIdx;
|
|||||||
|
|
||||||
void onTxOptionsUpdateConfirm(const char * result)
|
void onTxOptionsUpdateConfirm(const char * result)
|
||||||
{
|
{
|
||||||
if (result == STR_OK)
|
if (result == STR_OK) {
|
||||||
moduleState[g_moduleIdx].readModuleSettings(&reusableBuffer.hardwareAndSettings.moduleSettings);
|
reusableBuffer.hardwareAndSettings.moduleSettingsDirty = 2;
|
||||||
else
|
moduleState[g_moduleIdx].writeModuleSettings(&reusableBuffer.hardwareAndSettings.moduleSettings);
|
||||||
|
}
|
||||||
|
else {
|
||||||
popMenu();
|
popMenu();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|||||||
Reference in New Issue
Block a user