aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-serial-port.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-serial-port.c b/src/mm-serial-port.c
index 3abd5619..2600ae51 100644
--- a/src/mm-serial-port.c
+++ b/src/mm-serial-port.c
@@ -439,6 +439,10 @@ mm_serial_port_send_command (MMSerialPort *self,
serial_debug (self, "-->", priv->command->str, -1);
+ /* Only accept about 3 seconds of EAGAIN */
+ if (priv->send_delay > 0)
+ eagain_count = 3000000 / priv->send_delay;
+
s = priv->command->str;
while (*s) {
status = write (priv->fd, s, 1);