-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename raduino_v1.27.6.ino to raduino_v1.27.7.ino
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
Raduino_v1.27.6 for BITX40 - Allard Munters PE1NWL ([email protected]) | ||
Raduino_v1.27.7 for BITX40 - Allard Munters PE1NWL ([email protected]) | ||
This source file is under General Public License version 3. | ||
|
@@ -2282,7 +2282,7 @@ void calibrate_touch_pads() { | |
|
||
void setup() { | ||
u.raduino_version = 28; | ||
strcpy (c, "Raduino v1.27.6"); | ||
strcpy (c, "Raduino v1.27.7"); | ||
|
||
lcd.begin(16, 2); | ||
|
||
|
@@ -2327,11 +2327,6 @@ void setup() { | |
pinMode(PTT_SENSE, INPUT_PULLUP); | ||
// check if PTT sense line is installed | ||
PTTsense_installed = !digitalRead(PTT_SENSE); | ||
pinMode(PTT_SENSE, INPUT); //disable the internal pull-up | ||
|
||
// attach interrupt to the PTT_SENSE input | ||
// when PTT_SENSE goes from LOW to HIGH (so when PTT is keyed), execute the ISRptt routine | ||
attachPCINT(digitalPinToPCINT(PTT_SENSE), ISRptt, RISING); | ||
|
||
printLine(0, c); | ||
delay(1000); | ||
|
@@ -2340,6 +2335,12 @@ void setup() { | |
EEPROM.get(0, u); | ||
|
||
if (PTTsense_installed) { | ||
pinMode(PTT_SENSE, INPUT); //disable the internal pull-up | ||
|
||
// attach interrupt to the PTT_SENSE input | ||
// when PTT_SENSE goes from LOW to HIGH (so when PTT is keyed), execute the ISRptt routine | ||
attachPCINT(digitalPinToPCINT(PTT_SENSE), ISRptt, RISING); | ||
|
||
calibrate_touch_pads(); // measure the base capacitance of the touch pads while they're not being touched | ||
} | ||
|
||
|