From f237a26137c7a0c52b4bdd199b477d44e71f8865 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 25 Jul 2019 11:45:56 +0200 Subject: [PATCH] legacy: fix SCA when displaying the PIN matrix --- legacy/firmware/pinmatrix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/firmware/pinmatrix.c b/legacy/firmware/pinmatrix.c index 8c2e7a686..6ef240098 100644 --- a/legacy/firmware/pinmatrix.c +++ b/legacy/firmware/pinmatrix.c @@ -45,6 +45,10 @@ void pinmatrix_draw(const char *text) { bmp_digits[k]); } } + for (int i = 0; i < 3; i++) { + oledSCA(12 + i * (h + pad), 12 + i * (h + pad) + h - 1, OLED_WIDTH / 2); + oledInvert(0, 12 + i * (h + pad), OLED_WIDTH - 1, 12 + i * (h + pad) + h - 1); + } oledRefresh(); }