From ed6b6ea9c11fb4128537a87aee8df2499a089265 Mon Sep 17 00:00:00 2001 From: Xiretza <xiretza@xiretza.xyz> Date: Tue, 27 Aug 2019 16:42:35 +0200 Subject: [PATCH] fix(preload): Fix bad merge in ECG app OFFSET was renamed to OFFSET_Y in ea5a30d ("add pause-mode"), while the call to `draw_leds()` in bc7e3b9 ("Add led activity to ECG app") still uses the old name. This causes an exception and the ECG app fails to proceed past the start screen. --- preload/apps/ecg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preload/apps/ecg/__init__.py b/preload/apps/ecg/__init__.py index 6e6e820f..d8ff79e7 100644 --- a/preload/apps/ecg/__init__.py +++ b/preload/apps/ecg/__init__.py @@ -224,7 +224,7 @@ def draw_histogram(): old = value x += 1 - draw_leds((60 - int((max(history[-3:]) * scale + OFFSET) - 20)) * 11 / 60) + draw_leds((60 - int((max(history[-3:]) * scale + OFFSET_Y) - 20)) * 11 / 60) # draw text: mode/bias/write if pause_histogram == True: disp.print( -- GitLab