Skip to content

Commit

Permalink
storage conversions for Logic switch Safe
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-droid authored and pfeerick committed Dec 7, 2022
1 parent 52601fd commit f380a35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions radio/src/storage/conversions/conversions_216_218.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ void convertModelData_216_to_217(ModelData &model)
sw.v2 = convertSource_216_to_217((uint8_t)sw.v2);
}
}
else if (cstate == LS_FAMILY_BOOL || cstate == LS_FAMILY_STICKY) {
else if (cstate == LS_FAMILY_BOOL || cstate == LS_FAMILY_STICKY || cstate == LS_FAMILY_SAFE ) {
sw.v1 = convertSwitch_216_to_217(sw.v1);
sw.v2 = convertSwitch_216_to_217(sw.v2);
}
Expand Down Expand Up @@ -1170,7 +1170,7 @@ void convertModelData_217_to_218(ModelData &model)
sw.v2 = convertSource_217_to_218((uint8_t)sw.v2);
}
}
else if (cstate == LS_FAMILY_BOOL || cstate == LS_FAMILY_STICKY) {
else if (cstate == LS_FAMILY_BOOL || cstate == LS_FAMILY_STICKY || cstate == LS_FAMILY_SAFE) {
sw.v1 = convertSwitch_217_to_218(sw.v1);
sw.v2 = convertSwitch_217_to_218(sw.v2);
}
Expand Down
2 changes: 1 addition & 1 deletion radio/src/storage/conversions/conversions_218_219.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void convertModelData_218_to_219(ModelData &model)
sw.v2 = convertSource_218_to_219(sw.v2);
}
}
else if (cstate == LS_FAMILY_BOOL || cstate == LS_FAMILY_STICKY) {
else if (cstate == LS_FAMILY_BOOL || cstate == LS_FAMILY_STICKY || cstate == LS_FAMILY_SAFE) {
sw.v1 = convertSwitch_218_to_219(sw.v1);
sw.v2 = convertSwitch_218_to_219(sw.v2);
}
Expand Down

0 comments on commit f380a35

Please sign in to comment.