[tuxdroid-svn] r4916 - software_suite_v3/smart-core/smart-server/trunk/util/driver
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-06-27 11:57:56
|
Author: remi
Date: 2009-06-27 13:57:50 +0200 (Sat, 27 Jun 2009)
New Revision: 4916
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/driver/TuxDriver.py
Log:
* fixed exception on "PerformCommand" when dongle is not plugged. (correction must be applied in tuxdriver library in the future)
Modified: software_suite_v3/smart-core/smart-server/trunk/util/driver/TuxDriver.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/driver/TuxDriver.py 2009-06-26 16:50:00 UTC (rev 4915)
+++ software_suite_v3/smart-core/smart-server/trunk/util/driver/TuxDriver.py 2009-06-27 11:57:50 UTC (rev 4916)
@@ -342,8 +342,11 @@
if self.tux_driver_lib == None:
return E_TUXDRV_PARSERISDISABLED
- ret = self.tux_driver_lib.TuxDrv_PerformCommand(c_double(delay),
- c_char_p(command))
+ try:
+ ret = self.tux_driver_lib.TuxDrv_PerformCommand(c_double(delay),
+ c_char_p(command))
+ except:
+ ret = E_TUXDRV_NOERROR
self.__logger.logDebug("Perform the cmd : cmd(%s) delay (%f)" % \
(command, delay))
|