Skip to content

Commit

Permalink
Update m32_v6.ino
Browse files Browse the repository at this point in the history
Make sure you can initiate Hardware Config using a touch paddle with S§ based modules.
  • Loading branch information
oe1wkl committed Dec 15, 2024
1 parent 3d73c78 commit 4767090
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Software/src/Version 6/m32_v6.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1329,13 +1329,21 @@ uint8_t readSensors(int left, int right, boolean init) {
return ( lValue > MorsePreferences::tLeft ? 2 : 0 ) + (rValue > MorsePreferences::tRight ? 1 : 0 );
}
} else {
//DEBUG("@1216: tLeft: " + String(MorsePreferences::tLeft));
//DEBUG("@1332: tLeft: " + String(MorsePreferences::tLeft));
//lValue -=25; rValue -=25;
//DEBUG("@1216: lValue, rValue: " + String (lValue) + " " + String(rValue));
if (lValue < 32 || rValue < 32)
return 3;
else
return 0;
DEBUG("@1334: lValue, rValue: " + String (lValue) + " " + String(rValue));
if (sizeof(touch_value_t) < 4) {
if (lValue < 32 || rValue < 32)
return 3;
else
return 0;
}
else {
if (lValue > 85000 || rValue > 85000)
return 3;
else
return 0;
}
}
#endif
}
Expand Down

0 comments on commit 4767090

Please sign in to comment.