Skip to content

Commit

Permalink
Disable Auto Power Saving
Browse files Browse the repository at this point in the history
Disable Auto Power Saving when resetting the modem. This can cause several bugs with serial communication, as outlined on (https://www.sparkfun.com/products/9607)
  • Loading branch information
alobo committed Aug 27, 2013
1 parent ac204ff commit c616b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SerialGSM.cpp
Expand Up @@ -58,8 +58,8 @@ void SerialGSM::DeleteAllSMS(){
}

void SerialGSM::Reset(){
Serial.println("AT+CFUN=1,1"); // Reset Modem
this->println("AT+CFUN=1,1"); // Reset Modem
Serial.println("AT+CFUN=0,1"); // Reset Modem, Disable Auto Power Saving
this->println("AT+CFUN=0,1"); // Reset Modem, Disable Auto Power Saving
delay(200);
this->ReadLine();
}
Expand Down

0 comments on commit c616b95

Please sign in to comment.