Increased retry count on ftdi_read_data to avoid TELLSTICK_ERROR_COMMUNICATION on some TellStick/device combinations. Closes #125

This commit is contained in:
Stefan Persson 2011-12-30 16:03:08 +01:00
parent 5bb60a60c9
commit e019f416d9

View file

@ -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);