From 032903f5e44aa556809bff0b7e7b2c948105c83c Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 13 Jan 2023 09:16:24 -0500 Subject: [PATCH] moved gpio29 read before LED --- cubesatsim/cubesatsim.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index bcda9f72..fdeedbe1 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3638,6 +3638,11 @@ void config_gpio() { // set audio out to TXC board pinMode(AUDIO_OUT_PIN, OUTPUT); + + + pinMode(29, INPUT); + Serial.print("ADC3: "); + Serial.println(analogRead(29)); // set LEDs and blink once // if (!wifi) @@ -3691,9 +3696,6 @@ void config_gpio() { Serial.print("Audio In: "); Serial.println(analogRead(AUDIO_IN_PIN)); - pinMode(29, INPUT); - Serial.print("ADC3: "); - Serial.println(analogRead(29)); pinMode(PTT_PIN, OUTPUT); // PTT active LOW digitalWrite(PTT_PIN, HIGH);