Changeset 282


Ignore:
Timestamp:
08/23/11 14:12:32 (10 years ago)
Author:
sc
Message:
  • Better error handling for failed serial devices
Location:
trunk/Puzzlebox/Synapse
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Puzzlebox/Synapse/Interface.py

    r281 r282  
    11# -*- coding: utf-8 -*- 
    22 
    3 # Copyright Puzzlebox Productions, LLC (2010) 
     3# Copyright Puzzlebox Productions, LLC (2010-2011) 
    44# 
    55# This code is released under the GNU Pulic License (GPL) version 2 
     
    1010 
    1111__changelog__ = """\ 
    12 Last Update: 2011.03.01 
    13  
     12Last Update: 2011.08.23 
    1413""" 
    1514 
  • trunk/Puzzlebox/Synapse/Protocol.py

    r275 r282  
    11# -*- coding: utf-8 -*- 
    22 
    3 # Copyright Puzzlebox Productions, LLC (2010) 
     3# Copyright Puzzlebox Productions, LLC (2010-2011) 
    44# 
    55# This code is released under the GNU Pulic License (GPL) version 2 
     
    1111 
    1212__changelog__ = """\ 
    13 Last Update: 2011.03.11 
     13Last Update: 2011.08.23 
    1414 
    1515""" 
     
    928928                                print e, 
    929929                                print self.device_address 
    930                                 sys.exit() 
     930                                #sys.exit() 
     931                                return(None) 
    931932                 
    932933                 
     
    10291030        def close(self): 
    10301031                 
    1031                 self.device.close() 
     1032                if self.device != None: 
     1033                        self.device.close() 
    10321034         
    10331035         
Note: See TracChangeset for help on using the changeset viewer.