From f68e988736cee72c05e81ce1aa7e3895a9e29046 Mon Sep 17 00:00:00 2001 From: Ulrich Meine <145987006+Scorgan01@users.noreply.github.com> Date: Sun, 12 Jul 2026 01:08:39 +0200 Subject: [PATCH] Adjust check for recalculation of middle axis value for large ranges --- lib/obp60task/OBPcharts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/obp60task/OBPcharts.cpp b/lib/obp60task/OBPcharts.cpp index e4df689..ae9a7b6 100644 --- a/lib/obp60task/OBPcharts.cpp +++ b/lib/obp60task/OBPcharts.cpp @@ -420,8 +420,8 @@ void Chart::drawChartLines(const ChrtDir chrtDir, const int8_t chrtIntv, const d if (i >= timAxis - 1) { oldChrtIntv = 0; // force reset of buffer start and number of values to show in next display loop - if (chrtDataFmt == WIND) { // degree of course or wind - if (allLeft || allRight || chrtRng == M_PI) { + if (chrtDataFmt == WIND) { + if (allLeft || allRight || chrtRng == M_TWOPI) { // check if we should recalculate chart axis middle value recalcRngMid = true; } // LOG_DEBUG(GwLog::DEBUG, "OBPcharts: WIND chart end: timAxis: %d, i: %d, bufStart: %d, numBufVals: %d, recalcRngCntr: %d, allLeft: %d, allRight: %d", timAxis, i, bufStart,