Skip to content

Commit

Permalink
SIM800: Use constant delay of 10ms between runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Lippitsch committed Sep 7, 2022
1 parent cef0514 commit c4a0f64
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cicada/commdevices/sim800.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ void Sim800CommDevice::run()
_waitForReply = NULL;
_stateBooleans &= ~RESET_PENDING;
if (_connectState >= intermediate) {
setDelay(2000);
connect();
}
}
Expand Down Expand Up @@ -202,7 +201,6 @@ void Sim800CommDevice::run()
break;

case connecting:
setDelay(10);
_connectState = IPCommDevice::intermediate;
_stateBooleans |= LINE_READ;
_waitForReply = _okStr;
Expand Down Expand Up @@ -282,7 +280,6 @@ void Sim800CommDevice::run()
}

case finalizeConnect:
setDelay(0);
_connectState = IPCommDevice::connected;
_replyState = okReply;
_sendState = connected;
Expand Down Expand Up @@ -315,7 +312,6 @@ void Sim800CommDevice::run()
break;

case sendCiprxget4:
setDelay(0);
_waitForReply = _okStr;
_sendState = sendCiprxget2;
_replyState = ciprxget4;
Expand Down Expand Up @@ -351,7 +347,6 @@ void Sim800CommDevice::run()
} else if (_bytesToReceive > 0) {
_sendState = sendCiprxget2;
} else {
setDelay(10);
_sendState = sendCiprxget4;
}
break;
Expand Down

0 comments on commit c4a0f64

Please sign in to comment.