[tuxdroid-svn] r224 - svnlook: warning: cannot set LC_CTYPE locale svnlook: warning: environment va
Status: Beta
Brought to you by:
ks156
From: svnlook:warning@affinitic.be:cannot s. L. l. <c2m...@c2...> - 2007-04-08 16:55:11
|
Author: svnlook: warning: cannot set LC_CTYPE locale Date: svnlook: warning: environment variable LANG is EN New Revision: 224 Modified: api/python/trunk/tuxapi_class.py Log: neimad 2007-04-08 18:54:40 +0200 (Sun, 08 Apr 2007) 40 * Removed loads of trailing whitespace. svnlook: warning: cannot set LC_CTYPE locale svnlook: warning: environment variable LANG is EN svnlook: warning: please check that your locale name is correct Modified: api/python/trunk/tuxapi_class.py =================================================================== --- api/python/trunk/tuxapi_class.py 2007-04-03 20:15:14 UTC (rev 223) +++ api/python/trunk/tuxapi_class.py 2007-04-08 16:54:40 UTC (rev 224) @@ -167,7 +167,7 @@ value_8b=2 value_16b=3 value_np=4 - + value_type=value_onoff line="" status=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] @@ -259,7 +259,7 @@ if value_type==value_16b: line=line+"%d"%((status[5]*256)+status[6]) return line - + #-------------------------------------------------------------------------- ## Pooling on data arrival from tcp server ## SYSTEM function @@ -355,17 +355,17 @@ self.event.on_remote_bt[ord(self.last_datas_for_event[5])]() if self.event.on_remote!=None: self.event.on_remote(ord(self.last_datas_for_event[5])) - #Mouth open + #Mouth open if ord(self.last_datas_for_event[4])==DATAS_STATUS_MOUTH_OPEN_POSITION: if ord(self.last_datas_for_event[5])==1: if self.event.on_mouth_open!=None: self.event.on_mouth_open() - #Mouth close + #Mouth close if ord(self.last_datas_for_event[4])==DATAS_STATUS_MOUTH_CLOSED_POSITION: if ord(self.last_datas_for_event[5])==1: if self.event.on_mouth_close!=None: self.event.on_mouth_close() - #Ledl + #Ledl if ord(self.last_datas_for_event[4])==DATAS_STATUS_LEFT_BLUE_LED: if ord(self.last_datas_for_event[5])==1: if self.event.on_left_blue_led_on!=None: @@ -373,7 +373,7 @@ else: if self.event.on_left_blue_led_off!=None: self.event.on_left_blue_led_off() - #Ledr + #Ledr if ord(self.last_datas_for_event[4])==DATAS_STATUS_RIGHT_BLUE_LED: if ord(self.last_datas_for_event[5])==1: if self.event.on_right_blue_led_on!=None: @@ -381,7 +381,7 @@ else: if self.event.on_right_blue_led_off!=None: self.event.on_right_blue_led_off() - #Eyes open/close + #Eyes open/close if ord(self.last_datas_for_event[4])==DATAS_STATUS_EYES_CLOSED_POSITION_SWITCH: if ord(self.last_datas_for_event[5])==1: if self.event.on_eyes_close!=None: @@ -389,7 +389,7 @@ else: if self.event.on_eyes_open!=None: self.event.on_eyes_open() - #Power plug switch + #Power plug switch if ord(self.last_datas_for_event[4])==DATAS_STATUS_POWER_PLUG_SWITCH: if ord(self.last_datas_for_event[5])==1: if self.event.on_power_plugged!=None: @@ -397,7 +397,7 @@ else: if self.event.on_power_unplugged!=None: self.event.on_power_unplugged() - #RF status + #RF status if ord(self.last_datas_for_event[4])==DATAS_STATUS_RF_CONNECTED: if ord(self.last_datas_for_event[5])==1: self.RF_connected=True @@ -407,34 +407,34 @@ self.RF_connected=False if self.event.on_rf_disconnected!=None: self.event.on_rf_disconnected() - #PONG + #PONG if ord(self.last_datas_for_event[4])==DATAS_STATUS_PONG: if self.event.on_pong_received!=None: rcv=ord(self.last_datas_for_event[6]) rem=ord(self.last_datas_for_event[5]) avg=int((100*rcv)/(200-rem)) self.event.on_pong_received(rcv,rem,avg) - #mouth stop + #mouth stop if ord(self.last_datas_for_event[4])==DATAS_STATUS_MOUTH_POSITION_COUNTER: if ord(self.last_datas_for_event[5])==0: if self.event.on_mouth_stop!=None: - self.event.on_mouth_stop() - #eyes stop + self.event.on_mouth_stop() + #eyes stop if ord(self.last_datas_for_event[4])==DATAS_STATUS_EYES_POSITION_COUNTER: if ord(self.last_datas_for_event[5])==0: if self.event.on_eyes_stop!=None: - self.event.on_eyes_stop() - - #wings stop + self.event.on_eyes_stop() + + #wings stop if ord(self.last_datas_for_event[4])==DATAS_STATUS_WINGS_POSITION_COUNTER: if ord(self.last_datas_for_event[5])==0: if self.event.on_wings_stop!=None: - self.event.on_wings_stop() - #spin stop + self.event.on_wings_stop() + #spin stop if ord(self.last_datas_for_event[4])==DATAS_STATUS_SPIN_POSITION_COUNTER: if ord(self.last_datas_for_event[5])==0: if self.event.on_spin_stop!=None: - self.event.on_spin_stop() + self.event.on_spin_stop() #============================================================================== # TUXTCPCommunicator - sys - class @@ -1477,8 +1477,8 @@ ## Get version of dongle RF cpu def donglerf_get_version(self): return self.get_firmware_versioning(3) - - ## Get the alsa devices + + ## Get the alsa devices def alsa_devices_enumerate(self): self.TUX_devices=[] self.TUX_devices_count=0 @@ -1519,16 +1519,16 @@ if ((current_tux_device[5]==0x03eb)and(current_tux_device[6]==0xff07)): self.TUX_devices.append(current_tux_device) self.TUX_devices_count=self.TUX_devices_count+1 - - ## Return the number of tux alsa devices + + ## Return the number of tux alsa devices def alsa_devices_count(self): count=0 for ctd in self.TUX_devices: if ctd[2]==0: count=count+1 return count - - ## Get a tux alsa device + + ## Get a tux alsa device def alsa_devices_select(self,number): self.alsa_devices_enumerate() self.alsa_devices_count() @@ -1536,14 +1536,14 @@ i=0 if self.TUX_devices_count>0: for ctd in self.TUX_devices: - if ctd[2]==0: + if ctd[2]==0: if i==number: self.alsa_device="hw:%d,%d"%(ctd[1],ctd[2]) return i=i+1 self.alsa_device="default" else: - self.alsa_device="default" + self.alsa_device="default" #============================================================================== # TUXTCPCommunicator - TTS - class |