Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1:/tmp/cvs-serv20142

Modified Files:
        bluetooth_config.py 
Log Message:
remove python 2.3 warning

Index: bluetooth_config.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/bluetooth_config.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bluetooth_config.py 23 Dec 2003 15:11:35 -0000      1.1
--- bluetooth_config.py 30 Dec 2003 20:47:58 -0000      1.2
***************
*** 14,17 ****
--- 14,20 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.2  2003/12/30 20:47:58  dischi
+ # remove python 2.3 warning
+ #
  # Revision 1.1  2003/12/23 15:11:35  dischi
  # new bluetooth plugin
***************
*** 44,63 ****
  
  
- global BLUE_RFCOMM
- 
- 
- 
  def init_sock():
  
      #Open the blutooth device. rfcomm is used to set a connection BEFORE this is 
used.
      print 'bluetooth: opening', BLUE_RFCOMM
      try:
!         bluefd = os.open(BLUE_RFCOMM, os.O_RDWR); global bluefd
      except OSError:
          print 'bluetooth: CRITICAL ERROR (Could not open device ', BLUE_RFCOMM, ')'
          sys.exit(1) 
- 
-     #Sends the initstring to the phone telling it to return all keypad events.
-     os.write(bluefd, "AT+CMER=3,2,0,0,0\r")
        
  
--- 47,65 ----
  
  
  def init_sock():
+     global BLUE_RFCOMM
  
      #Open the blutooth device. rfcomm is used to set a connection BEFORE this is 
used.
      print 'bluetooth: opening', BLUE_RFCOMM
      try:
!         global bluefd
!         bluefd = os.open(BLUE_RFCOMM, os.O_RDWR)
! 
!         #Sends the initstring to the phone telling it to return all keypad events.
!         os.write(bluefd, "AT+CMER=3,2,0,0,0\r")
! 
      except OSError:
          print 'bluetooth: CRITICAL ERROR (Could not open device ', BLUE_RFCOMM, ')'
          sys.exit(1) 
        
  
***************
*** 66,70 ****
      #rfcomm device path
      if config.BLUE_RFCOMM != '':
!         BLUE_RFCOMM = config.BLUE_RFCOMM; global BLUE_RFCOMM
      else:
          print 'bluetooth: WARNING (Could not read BLUE_RFCOMM from config, using 
default!)'
--- 68,73 ----
      #rfcomm device path
      if config.BLUE_RFCOMM != '':
!         global BLUE_RFCOMM
!         BLUE_RFCOMM = config.BLUE_RFCOMM; 
      else:
          print 'bluetooth: WARNING (Could not read BLUE_RFCOMM from config, using 
default!)'
***************
*** 95,100 ****
  init_sock()
      
  try:
-     global bluefd
      bluefd = os.open(BLUE_RFCOMM, os.O_RDWR)
  except OSError:
--- 98,104 ----
  init_sock()
      
+ global bluefd
+ 
  try:
      bluefd = os.open(BLUE_RFCOMM, os.O_RDWR)
  except OSError:




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to