From 36768084fc22c2ab03639b6425a3d5ae74f78aa4 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 4 Jan 2016 10:39:54 +0100 Subject: [PATCH] CallDistanceTransceiver.py: assign a float value to inter_symbol_distance For consistency always assign a float value to inter_symbol_distance, as it is going to be used in calculations with other float values. This also fixes an pylint message: R:101,12: Redefinition of inter_symbol_distance type from float to int (redefined-variable-type) --- src/savemysugar/CallDistanceTransceiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/savemysugar/CallDistanceTransceiver.py b/src/savemysugar/CallDistanceTransceiver.py index 01414a2..ecc0992 100755 --- a/src/savemysugar/CallDistanceTransceiver.py +++ b/src/savemysugar/CallDistanceTransceiver.py @@ -98,7 +98,7 @@ class CallDistanceTransceiver(object): # ring time makes them happy. inter_symbol_distance = ring_time_max else: - inter_symbol_distance = 0 + inter_symbol_distance = 0.0 self.modulator = MorseDistanceModulator(call_setup_time_min, call_setup_time_max, -- 2.1.4