[chirp_devel] [PATCH 1 of 2] bitwise: add get_raw() method to arrayDataElement. For #363

Tom Hayward
Fri Dec 28 21:30:22 PST 2012


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1356758619 28800
# Node ID 56749d29e5506922a6a9e930f76438c74be6ed66
# Parent  37b042d567412f3abdceea513a39e13aef344caa
bitwise: add get_raw() method to arrayDataElement. For #363

diff -r 37b042d56741 -r 56749d29e550 chirp/bitwise.py
--- a/chirp/bitwise.py	Fri Dec 28 07:58:20 2012 -0800
+++ b/chirp/bitwise.py	Fri Dec 28 21:23:39 2012 -0800
@@ -174,6 +174,9 @@
     def get_value(self):
         return list(self.__items)
 
+    def get_raw(self):
+        return "".join([item.get_raw() for item in self.__items])
+
     def __setitem__(self, index, val):
         self.__items[index].set_value(val)
 



More information about the chirp_devel mailing list