Skip to content

Commit

Permalink
display friendly LS name on viewlayout
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 785c6b6 commit a58c3a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion radio/src/gui/colorlcd/view_logical_switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,17 @@ class LogicalSwitchDisplayFooter : public Window
LogicalSwitchData* cs = lswAddress(index);

LcdFlags textColor = COLOR_THEME_PRIMARY2;
dc->drawTextAtIndex(10, 1, STR_VCSWFUNC, cs->func, textColor);



//LS friendly name
const char* chrs = cs->custName;
if(strlen(chrs) > 0){
dc->drawText(15, 1, cs->custName, textColor);
}else{
dc->drawTextAtIndex(5, 1, STR_VCSWFUNC, cs->func, textColor);
}

// CSW params
unsigned int cstate = lswFamily(cs->func);

Expand Down

0 comments on commit a58c3a4

Please sign in to comment.