From df51ad3e367d85eef11eba564205abd2318bf3e7 Mon Sep 17 00:00:00 2001 From: Teo-CD Date: Fri, 10 Nov 2023 17:50:13 +0000 Subject: [PATCH] IDs: Mystery lifted, Loup-Garou ! Update the promo names array with the newest year name. --- src/IDs.cpp | 2 +- src/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IDs.cpp b/src/IDs.cpp index 8a3ae9a..42810c1 100644 --- a/src/IDs.cpp +++ b/src/IDs.cpp @@ -16,7 +16,7 @@ constexpr char promoDirs[][dirStrSize] = { "OURS", "BAGAR", "INCAPABLE", - "MYSTERE" + "LOUPGAROU" }; constexpr char charDirs[][dirStrSize] = { "INVALIDE", diff --git a/src/main.cpp b/src/main.cpp index 4214db5..c09771e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,8 +25,8 @@ __attribute__((noreturn)) int main() { pinMode(pin_BAT_SNS, INPUT); /* - * Voltage divider ratio is 1.5 and analog input has 10 significant bits. - * Which gives us 0-1023 <=> 0V-4.95V, so 650 is a measure of 3.14V. + * Voltage divider ratio is 1.5 and analog input has 10 significant bits, + * which gives us 0-1023 <=> 0V-4.95V, so 650 is a measure of 3.14V. * This is quite low, but there's a voltage drop because of the diode, and * we don't want to be at the very end of the battery's charge anyway. * Let's be conservative.