Skip to content

Commit

Permalink
Companion: bug: display correct name
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 a54b5e4 commit 2fe540b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion companion/src/firmwares/rawswitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ QString RawSwitch::toString(Board::Type board, const GeneralSettings * const gen

case SWITCH_TYPE_VIRTUAL:
if (modelData)
return modelData->logicalSw[index].nameToString(index-1) + ": " + modelData->logicalSw[index].custNameToString() ;
return modelData->logicalSw[index].nameToString(index-1) + ": " + modelData->logicalSw[index-1].custNameToString() ;
else
return LogicalSwitchData().nameToString(index-1);

Expand Down

0 comments on commit 2fe540b

Please sign in to comment.