Code Duplication    Length = 10-10 lines in 2 locations

hardware/fastcomtec/fastcomtecp7887.py 1 location

@@ 519-528 (lines=10) @@
516
517
        @return int mode: specified save mode
518
        """
519
        cmd = 'savedata={0}'.format(mode)
520
        self.dll.RunCmd(0, bytes(cmd, 'ascii'))
521
        return mode
522
523
    def set_delay_start(self, delay_s):
524
        """ Sets the record delay length
525
526
        @param int delay_s: Record delay after receiving a start trigger
527
528
        @return int mode: specified save mode
529
        """
530
531
        # A delay can only be adjusted in steps of 6.4ns

hardware/fastcomtec/fastcomtecmcs6.py 1 location

@@ 514-523 (lines=10) @@
511
        """
512
        bsetting = BOARDSETTING()
513
        self.dll.GetMCSSetting(ctypes.byref(bsetting), 0)
514
        preset = bsetting.swpreset
515
        return int(preset)
516
517
    def set_cycles(self, cycles):
518
        """ Sets the cycles
519
520
        @param int cycles: Total amount of cycles
521
522
        @return int mode: current cycles
523
        """
524
        cmd = 'cycles={0}'.format(cycles)
525
        self.dll.RunCmd(0, bytes(cmd, 'ascii'))
526
        return cycles