Changeset 69059b


Ignore:
Timestamp:
01/12/12 10:33:11 (4 months ago)
Author:
Micke Prag <micke.prag@…>
Branches:
('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
Children:
b84e8b3806d9db62cfda5035e274ef6fe0b9f817
Parents:
b0f092e98d602301ead905292420777c5da7640e
git-author:
Micke Prag <micke.prag@telldus.se>2012-01-12 10:33:11+01:00
git-committer:
Micke Prag <micke.prag@telldus.se>2012-01-12 10:33:11+01:00
Message:

Lower the retry count (again).
ftdi_read_data() uses the latency times as a timeout. This is set to
16ms so 250 retries take about 4s if we don't get a response (worst
case).
The longest protocol we could think of is "learn" for risingsun
selflearning. It takes roughly 3s to finish.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telldus-core/service/TellStick_libftdi.cpp

    rd7cce5 r69059b  
    6969        ftdi_usb_reset( &d->ftHandle ); 
    7070        ftdi_disable_bitbang( &d->ftHandle ); 
     71        ftdi_set_latency_timer(&d->ftHandle, 16); 
    7172 
    7273        if (d->open) { 
     
    231232        Log::warning("Continuing"); 
    232233 
    233         int retrycnt = 500; 
     234        int retrycnt = 250; 
    234235        unsigned char in; 
    235236        while(c && --retrycnt) { 
Note: See TracChangeset for help on using the changeset viewer.