Skip to content

Commit

Permalink
address build warnings about ncurses example
Browse files Browse the repository at this point in the history
resolves #241
  • Loading branch information
2bndy5 committed Jun 18, 2024
1 parent 7827e87 commit 46f0082
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions examples_RPi/ncurses/RF24Mesh_Ncurses_Master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void drawTopology()
wclear(topoPad);
wattroff(topoPad, COLOR_PAIR(1));
mvprintw(17, 10, "Mesh Topology");
mvwprintw(topoPad, nodeY > 15 ? nodeY - 16 : 0, 0, "");
mvwaddch(topoPad, nodeY > 15 ? nodeY - 16 : 0, 0, 0);
wattron(topoPad, COLOR_PAIR(1));
int topoPadmaxX;
topoPadmaxX = getmaxx(topoPad);
Expand All @@ -238,9 +238,7 @@ void drawTopology()

for (int j = 0; j < mesh.addrListTop; j++) {
if (mesh.addrList[j].address == i) {
int y = 0;
int x = 0;
getyx(topoPad, y, x);
int x = getcurx(topoPad);
if (x >= topoPadmaxX) wprintw(topoPad, "\n");
wprintw(topoPad, "0%o[%d] ", mesh.addrList[j].address, mesh.addrList[j].nodeID);
}
Expand All @@ -258,9 +256,7 @@ void drawTopology()

for (int j = 0; j < mesh.addrListTop; j++) {
if (mesh.addrList[j].address == i) {
int y = 0;
int x = 0;
getyx(topoPad, y, x);
int x = getcurx(topoPad);
if (x >= topoPadmaxX) wprintw(topoPad, "\n");
wprintw(topoPad, "0%o[%d] ", mesh.addrList[j].address, mesh.addrList[j].nodeID);
}
Expand All @@ -278,9 +274,7 @@ void drawTopology()

for (int j = 0; j < mesh.addrListTop; j++) {
if (mesh.addrList[j].address == i) {
int y = 0;
int x = 0;
getyx(topoPad, y, x);
int x = getcurx(topoPad);
if (x >= topoPadmaxX) wprintw(topoPad, "\n");
wprintw(topoPad, "0%o[%d] ", mesh.addrList[j].address, mesh.addrList[j].nodeID);
}
Expand Down

0 comments on commit 46f0082

Please sign in to comment.