Skip to content

Commit

Permalink
increase bar graph from 17 to 19 bars
Browse files Browse the repository at this point in the history
  • Loading branch information
barry-ha committed Jan 4, 2024
1 parent 67c7f20 commit 9d16ed0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions view_sat_count.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class ViewSatCount : public View {
void startScreen();
bool onTouch(Point touch);

etl::circular_buffer<satCountItem, 17> cbSats;
etl::circular_buffer<satCountItem, 17>::iterator cbIter;
etl::circular_buffer<satCountItem, 19> cbSats;
etl::circular_buffer<satCountItem, 19>::iterator cbIter;

// pushes a value to the back of the circular buffer
void push(time_t tm, int nSats) {
Expand Down Expand Up @@ -157,7 +157,7 @@ class ViewSatCount : public View {

// make sure text is always drawn inside canvas
if (value < 10) {
// most values are drawn above bar in white
// small values are drawn above bar in white
tft->setCursor(xx + 2, tt - 2);
tft->setTextColor(ILI9341_WHITE);
tft->print(value);
Expand Down Expand Up @@ -193,7 +193,7 @@ class ViewSatCount : public View {
txtValues[eDate].print(msg);

snprintf(msg, sizeof(msg), "%d#", GPS.satellites);
txtValues[eNumSat].print(msg); // show number of satellites, help give sense of positional accuracy
txtValues[eNumSat].print(msg); // show number of satellites

snprintf(msg, sizeof(msg), "%02d:%02d", hh, mm);
txtValues[eTimeHHMM].print(msg); // show time, help identify when RTC stops
Expand Down

0 comments on commit 9d16ed0

Please sign in to comment.