# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1409676819 25200 # Tue Sep 02 09:53:39 2014 -0700 # Node ID 7b543a135e41797f4686dbd58c3b4490644ab455 # Parent 4131463db7b8d8a27e4901d5fd8997c58a411a25 [th9800] Fix make_supported.py crash. #1353
make_supported.py does not provide pipe as a str like a normal instantiation, so it must be supported specifically in the Radio init.
diff -r 4131463db7b8 -r 7b543a135e41 chirp/th9800.py --- a/chirp/th9800.py Mon Sep 01 08:03:09 2014 -0700 +++ b/chirp/th9800.py Tue Sep 02 09:53:39 2014 -0700 @@ -66,8 +66,11 @@ self.errors = [] self._mmap = None
- self.pipe = None - self.load_mmap(pipe) + if isinstance(pipe, str): + self.pipe = None + self.load_mmap(pipe) + else: + chirp_common.FileBackedRadio.__init__(self, pipe)
def get_features(self): rf = chirp_common.RadioFeatures()