mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-25 18:37:45 -07:00
changes baudrate to 115200
This commit is contained in:
parent
66ef9685fa
commit
0c703101a3
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#define GSM_RST A2
|
#define GSM_RST A2
|
||||||
#define GSM_RING A5
|
#define GSM_RING A5
|
||||||
#define GSM_BAUDRATE 4800
|
#define GSM_BAUDRATE 115200
|
||||||
|
|
||||||
// Low battery light threshold
|
// Low battery light threshold
|
||||||
#define CHG_VLO 3800
|
#define CHG_VLO 3800
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
#define SLEEP_TIMEOUT 120000
|
#define SLEEP_TIMEOUT 120000
|
||||||
|
|
||||||
// RSSI value below which No Service LED will light
|
// RSSI value below which No Service LED will light
|
||||||
#define RSSI_THRESHOLD 1
|
#define RSSI_THRESHOLD 1
|
||||||
|
|
||||||
// Keypad pinout
|
// Keypad pinout
|
||||||
byte rowPins[4] = {5, 10, 9, 7};
|
byte rowPins[4] = {5, 10, 9, 7};
|
||||||
|
@ -65,11 +65,9 @@ void inCall() {
|
||||||
|
|
||||||
// numpad stuff
|
// numpad stuff
|
||||||
}
|
}
|
||||||
for ( int j = 0; j < phoneNumberLength; j++) {
|
clearPhoneNumber();
|
||||||
phoneNumber[j] = 0;
|
|
||||||
}
|
|
||||||
phoneNumberLength = 0;
|
|
||||||
startDialtone = true;
|
startDialtone = true;
|
||||||
|
delay(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
void beginCall() {
|
void beginCall() {
|
||||||
|
@ -157,7 +155,7 @@ void loop() {
|
||||||
if ( dialtoneActive ) {
|
if ( dialtoneActive ) {
|
||||||
fona.sendCheckReply( F("AT+STTONE=0"), F("OK") ); // End dialtone
|
fona.sendCheckReply( F("AT+STTONE=0"), F("OK") ); // End dialtone
|
||||||
dialtoneActive = false;
|
dialtoneActive = false;
|
||||||
delay(50);
|
delay(100);
|
||||||
}
|
}
|
||||||
fona.playDTMF( key ); // Play DTMF tone
|
fona.playDTMF( key ); // Play DTMF tone
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user