From 50136360e721b3d5817bd26be214633d7f397d69 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Sat, 7 Jan 2023 21:58:51 +0800 Subject: [PATCH] lotus: Auto start ADC conversion Signed-off-by: Daniel Schaefer --- keyboards/lotus/matrix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/keyboards/lotus/matrix.c b/keyboards/lotus/matrix.c index 75c6a9d244..a6f2de665c 100644 --- a/keyboards/lotus/matrix.c +++ b/keyboards/lotus/matrix.c @@ -424,6 +424,12 @@ void matrix_init_custom(void) { // For testing enable temp sensor adcRPEnableTS(&ADCD1); + // Start ADC conversion immediately. Don't wait for factory command to enable + // For debugging it's sometimes useful to start later because the first + // prints won't show on the console. So if it hangs here, it's hard to tell + // what's going wrong. + letsgo = true; + // Start automatic conversion //chThdSleepMilliseconds(100); //trigger_adc();