Skip to content

Commit

Permalink
Change variable to boolean in companion.
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz committed May 21, 2024
1 parent dcb5a03 commit 04de7a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions companion/src/firmwares/edgetx/yaml_logicalswitchdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ Node convert<LogicalSwitchData>::encode(const LogicalSwitchData& rhs)
node["delay"] = rhs.delay;
node["duration"] = rhs.duration;
node["andsw"] = YamlRawSwitchEncode(RawSwitch(rhs.andsw));
node["lsPersist"] = rhs.lsPersist;
node["lsState"] = rhs.lsState;
node["lsPersist"] = (int)rhs.lsPersist;
node["lsState"] = (int)rhs.lsState;

return node;
}
Expand Down
4 changes: 2 additions & 2 deletions companion/src/firmwares/logicalswitchdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class LogicalSwitchData {
unsigned int delay;
unsigned int duration;
int andsw;
int lsState;
int lsPersist;
bool lsState;
bool lsPersist;

void clear() { memset(this, 0, sizeof(LogicalSwitchData)); }
bool isEmpty() const;
Expand Down

0 comments on commit 04de7a9

Please sign in to comment.