From 2e4cf0ce58e460622cf5e639a15f78481c319839 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 18 Dec 2019 16:32:08 -0800 Subject: [PATCH] Revert "fixed accidental reversal of gain adjust #oops" This reverts commit 3dcadb5e4ee9449eafdcd9f9861ba8b142373eb1. --- .../AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_function.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_function.h b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_function.h index 693aa32..aea4a1b 100644 --- a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_function.h +++ b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_function.h @@ -130,11 +130,11 @@ void calibrateAlert() { void adjustGain() { switch (GAIN_FACTOR) { - case 0: + case 4: pinMode(GADJ_R0, OUTPUT); digitalWriteFast(GADJ_R0, LOW); break; - case 1: + case 3: pinMode(GADJ_R1, OUTPUT); digitalWriteFast(GADJ_R1, LOW); pinMode(GADJ_R0, INPUT); @@ -145,14 +145,14 @@ void adjustGain() { pinMode(GADJ_R1, INPUT); pinMode(GADJ_R0, INPUT); break; - case 3: + case 1: pinMode(GADJ_R3, OUTPUT); digitalWriteFast(GADJ_R3, LOW); pinMode(GADJ_R2, INPUT); pinMode(GADJ_R1, INPUT); pinMode(GADJ_R0, INPUT); break; - case 4: + case 0: default: pinMode(GADJ_R3, INPUT); pinMode(GADJ_R2, INPUT);