Changed reset method for in ftd2xx for non-windows platforms.
This commit is contained in:
parent
46d70ad451
commit
915d47dc1c
1 changed files with 5 additions and 1 deletions
|
@ -162,11 +162,15 @@ void TellStick::processData( const std::string &data ) {
|
|||
}
|
||||
|
||||
int TellStick::reset(){
|
||||
#ifndef _WINDOWS
|
||||
return TELLSTICK_SUCCESS; //nothing to be done on other platforms
|
||||
#else
|
||||
int success = FT_CyclePort( d->ftHandle );
|
||||
if(success == FT_OK){
|
||||
return success;
|
||||
return TELLSTICK_SUCCESS;
|
||||
}
|
||||
return TELLSTICK_ERROR_UNKNOWN;
|
||||
#endif
|
||||
}
|
||||
|
||||
void TellStick::run() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue