mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-25 18:37:45 -07:00
removes remaining usb debug stuff
This commit is contained in:
parent
34ae6a7f70
commit
f748faa6e8
|
@ -18,8 +18,6 @@
|
||||||
// Low battery light threshold
|
// Low battery light threshold
|
||||||
#define CHG_VLO 3900
|
#define CHG_VLO 3900
|
||||||
|
|
||||||
#define MAG_SENSE A1
|
|
||||||
|
|
||||||
// Keypad pinout
|
// Keypad pinout
|
||||||
byte rowPins[4] = {5, 10, 9, 7};
|
byte rowPins[4] = {5, 10, 9, 7};
|
||||||
byte colPins[3] = {6, 4, 8};
|
byte colPins[3] = {6, 4, 8};
|
||||||
|
@ -43,7 +41,6 @@ bool dialtoneActive = false;
|
||||||
bool startDialtone = false;
|
bool startDialtone = false;
|
||||||
|
|
||||||
HardwareSerial *fonaSerial = &Serial;
|
HardwareSerial *fonaSerial = &Serial;
|
||||||
|
|
||||||
Adafruit_FONA fona = Adafruit_FONA(GSM_RST);
|
Adafruit_FONA fona = Adafruit_FONA(GSM_RST);
|
||||||
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, 4, 3 );
|
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, 4, 3 );
|
||||||
|
|
||||||
|
@ -56,9 +53,6 @@ void inCall() {
|
||||||
while (1) {
|
while (1) {
|
||||||
if ( !digitalRead(BUT_END) || fona.getCallStatus() < 3 ) { // End button pressed
|
if ( !digitalRead(BUT_END) || fona.getCallStatus() < 3 ) { // End button pressed
|
||||||
fona.hangUp();
|
fona.hangUp();
|
||||||
#ifdef USB_DEBUG
|
|
||||||
Serial.println("Hanging up");
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user