From 6861cb355c67dc97b65b01fff28f9217156ece49 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 26 Apr 2022 13:38:56 +0100 Subject: [PATCH] int() --- playback_file.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/playback_file.py b/playback_file.py index 89265cf..5baeef4 100644 --- a/playback_file.py +++ b/playback_file.py @@ -85,7 +85,6 @@ def playFileOnRequest(system,fileName,dstTG,subid): #Packet every 60ms sleep(0.058) _stream_id = pkt[16:20] - _pkt_time = time() reactor.callFromThread(sendVoicePacket,systems[system],pkt,_source_id,_dst_id,_slot) logger.debug('(%s) Sending AMBE file %s end',system,fileName) @@ -217,7 +216,7 @@ if __name__ == '__main__': SUBID = int(cli_args.SUBID) if 'ONESHOT' in cli_args: ONESHOT = bool(cli_args.ONESHOT) - if 'INTERVAL' in cli_args and cli_args.INTERVAL > 30: + if 'INTERVAL' in cli_args and int(cli_args.INTERVAL) > 30: INTERVAL = int(cli_args.INTERVAL) if 'TALKGROUP' in cli_args: TALKGROUP = int(cli_args.TALKGROUP)