diff --git a/share/make_supported.py b/share/make_supported.py index 0ed45dfe..c0d135a3 100755 --- a/share/make_supported.py +++ b/share/make_supported.py @@ -15,6 +15,20 @@ RF = chirp_common.RadioFeatures() KEYS = [x for x in sorted(RF.__dict__.keys()) \ if "_" in x and not x.startswith("_")] +RADIO_TYPES = { + 'Clone': chirp_common.CloneModeRadio, + 'File': chirp_common.FileBackedRadio, + 'Live': chirp_common.LiveRadio, +} + + +def radio_type(radio): + for k, v in RADIO_TYPES.items(): + if isinstance(radio, v): + return k + return "" + + def supported_row(radio, odd): row = '