Project

General

Profile

New Model #6801 » c85508f6c23c.patch

Philip Freeman, 05/17/2019 05:09 PM

View differences:

chirp/drivers/alinco.py Sun May 12 00:35:53 2019 -0400 → chirp/drivers/alinco.py Thu May 16 14:50:58 2019 -0700
572 572
        return data
573 573

  
574 574

  
575
DJG7EG_MEM_FORMAT = """
575
DJG7_MEM_FORMAT = """
576 576
#seekto 0x200;
577 577
ul16 bank[50];
578 578
ul16 special_bank[7];
......
598 598
"""
599 599

  
600 600

  
601
@directory.register
602
class AlincoDJG7EG(AlincoStyleRadio):
601
class AlincoDJG7(AlincoStyleRadio):
603 602
    """Alinco DJ-G7EG"""
604 603
    VENDOR = "Alinco"
605
    MODEL = "DJ-G7EG"
606 604
    BAUD_RATE = 57600
607 605

  
608 606
    # Those are different from the other Alinco radios.
......
613 611
    TMODES = ["", "??1", "Tone", "TSQL", "TSQL-R", "DTCS"]
614 612

  
615 613
    # This is a bit of a hack to avoid overwriting _identify()
616
    _model = "AL~DJ-G7EG"
617 614
    _memsize = 0x1a7c0
618 615
    _range = [(500000, 1300000000)]
619 616

  
......
777 774
                            "frequency. Touch channel to fix." % number)
778 775

  
779 776
    def process_mmap(self):
780
        self._memobj = bitwise.parse(DJG7EG_MEM_FORMAT, self._mmap)
777
        self._memobj = bitwise.parse(DJG7_MEM_FORMAT, self._mmap)
781 778
        # We check all channels for corruption (see bug #5275) but we don't fix
782 779
        # it automatically because it would be unpolite to modify something on
783 780
        # a read operation. A log message is emitted though for the user to
......
866 863
            _mem.unknown2 = 0x0000000a
867 864
            _mem.unknown3 = 0x00000000
868 865
            _mem.unknown4 = 0x00000000
866

  
867
@directory.register
868
class AlincoDJG7EG(AlincoDJG7):
869
    """Alinco DJ-G7EG"""
870
    MODEL = "DJ-G7EG"
871

  
872
    # This is a bit of a hack to avoid overwriting _identify()
873
    _model = "AL~DJ-G7EG"
874

  
875
@directory.register
876
class AlincoDJG7T(AlincoDJG7):
877
    """Alinco DJ-G7T"""
878
    MODEL = "DJ-G7T"
879

  
880
    # This is a bit of a hack to avoid overwriting _identify()
881
    _model = "AL~DJ-G7T"
882

  
    (1-1/1)