Skip to content

Commit

Permalink
Relax WritePage timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Mar 6, 2023
1 parent bb7352a commit ef14511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Samba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ Samba::writeBuffer(uint32_t src_addr, uint32_t dst_addr, uint32_t size)
int l = snprintf((char*) cmd, sizeof(cmd), "Y%08X,0#", src_addr);
if (_port->write(cmd, l) != l)
throw SambaError();
_port->timeout(TIMEOUT_QUICK);
_port->timeout(TIMEOUT_NORMAL);
cmd[0] = 0;
_port->read(cmd, 3); // Expects "Y\n\r"
_port->timeout(TIMEOUT_NORMAL);
Expand Down

0 comments on commit ef14511

Please sign in to comment.