Skip to content

Commit

Permalink
fixed accidental reversal of gain adjust #oops
Browse files Browse the repository at this point in the history
  • Loading branch information
pyr0ball committed Dec 19, 2019
1 parent 4076423 commit 3dcadb5
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -130,11 +130,11 @@ void calibrateAlert() {
void adjustGain() {
switch (GAIN_FACTOR)
{
case 4:
case 0:
pinMode(GADJ_R0, OUTPUT);
digitalWriteFast(GADJ_R0, LOW);
break;
case 3:
case 1:
pinMode(GADJ_R1, OUTPUT);
digitalWriteFast(GADJ_R1, LOW);
pinMode(GADJ_R0, INPUT);
Expand All @@ -145,14 +145,14 @@ void adjustGain() {
pinMode(GADJ_R1, INPUT);
pinMode(GADJ_R0, INPUT);
break;
case 1:
case 3:
pinMode(GADJ_R3, OUTPUT);
digitalWriteFast(GADJ_R3, LOW);
pinMode(GADJ_R2, INPUT);
pinMode(GADJ_R1, INPUT);
pinMode(GADJ_R0, INPUT);
break;
case 0:
case 4:
default:
pinMode(GADJ_R3, INPUT);
pinMode(GADJ_R2, INPUT);
Expand Down

0 comments on commit 3dcadb5

Please sign in to comment.