From 3c05a2da12e4fc7115c6a3e38cfc00cf4f38281c Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 8 Feb 2019 16:56:36 +0100 Subject: [PATCH] Fix rebase. --- common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.c b/common.c index 7d019ec31..7d1cfdd7a 100644 --- a/common.c +++ b/common.c @@ -38,7 +38,7 @@ void __attribute__((noreturn)) __fatal_error(const char *expr, const char *msg, oledClear(); oledDrawBitmap(0, 0, icon); - oledDrawStringCenter((icon->height - FONT_HEIGHT)/2 + 1, "FATAL ERROR", FONT_STANDARD); + oledDrawStringCenter(OLED_WIDTH / 2, (icon->height - FONT_HEIGHT)/2 + 1, "FATAL ERROR", FONT_STANDARD); snprintf(line, sizeof(line), "Expr: %s", expr ? expr : "(null)"); oledDrawString(0, y, line, FONT_STANDARD);