From: Antonio Ospite Date: Mon, 4 Jan 2016 09:39:54 +0000 (+0100) Subject: CallDistanceTransceiver.py: assign a float value to inter_symbol_distance X-Git-Url: https://git.ao2.it/SaveMySugar/python3-savemysugar.git/commitdiff_plain/36768084fc22c2ab03639b6425a3d5ae74f78aa4?ds=inline;hp=dad0135e651b3cbf50d37dba21eeea15a7b8e4e9 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) --- 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,