Increased retry count on ftdi_read_data to avoid TELLSTICK_ERROR_COMMUNICATION on some TellStick/device combinations. Closes #125
This commit is contained in:
parent
5bb60a60c9
commit
e019f416d9
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ int TellStick::send( const std::string &strMessage ) {
|
||||||
|
|
||||||
delete[] tempMessage;
|
delete[] tempMessage;
|
||||||
|
|
||||||
int retrycnt = 200;
|
int retrycnt = 500;
|
||||||
unsigned char in;
|
unsigned char in;
|
||||||
while(c && --retrycnt) {
|
while(c && --retrycnt) {
|
||||||
ret = ftdi_read_data( &d->ftHandle, &in, 1);
|
ret = ftdi_read_data( &d->ftHandle, &in, 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue