From 880f0584823bc779672b283ecfdfab3f5b5ec9e9 Mon Sep 17 00:00:00 2001 From: cf18 Date: Sun, 18 Jan 2015 04:23:56 +0100 Subject: [PATCH] correcting transponed QR code --- firmware/layout2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/layout2.c b/firmware/layout2.c index 0e6291884f..099aeb8245 100644 --- a/firmware/layout2.c +++ b/firmware/layout2.c @@ -222,9 +222,10 @@ void layoutAddress(const char *address) if (side > 0 && side <= 29) { oledInvert(0, 0, (side + 2) * 2, (side + 2) * 2); + //not 100% sure why this is transponed for (i = 0; i < side; i++) { for (j = 0; j< side; j++) { - a = i * side + j; + a = j * side + i; if (bitdata[a / 8] & (1 << (7 - a % 8))) { oledClearPixel(2 + i * 2, 2 + j * 2); oledClearPixel(3 + i * 2, 2 + j * 2);