Skip to content

Commit

Permalink
Add hardReset() (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
janakelarsson authored Dec 9, 2020
1 parent 9abcaad commit db7aeee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Modem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ void ModemClass::end()
}
}

void ModemClass::hardReset()
{
// Hardware pin reset, only use in EMERGENCY
digitalWrite(_resetPin, HIGH);
delay(1000); // Datasheet says nothing, so guess we wait one second
digitalWrite(_resetPin, LOW);
setVIntPin(SARA_VINT_OFF);
}

void ModemClass::debug()
{
debug(Serial);
Expand Down
1 change: 1 addition & 0 deletions src/Modem.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class ModemClass {
int noop();
int reset();
int shutdown();
void hardReset(); // Hardware pin reset, only use in EMERGENCY
int isPowerOn();
void setVIntPin(int vIntPin);

Expand Down

0 comments on commit db7aeee

Please sign in to comment.