MorseDistanceModulator.py: improve a comment
[SaveMySugar/python3-savemysugar.git] / src / savemysugar / MorseDistanceModulator.py
index 417c5f9..fccd57f 100755 (executable)
@@ -34,7 +34,7 @@ class SymbolTime(object):
         assert multiplier >= 0
         if (period_min == period_max) and (min_inter_symbol_distance == 0):
             raise ValueError("If (period_min == period_max) a non-zero",
-                             "inter-symbol distance MUST be specified")
+                             "min_inter_symbol_distance MUST be specified")
 
         symbol_distance = 2 * (period_max - period_min)
         if symbol_distance == 0:
@@ -142,9 +142,9 @@ class MorseDistanceModulator(object):
 
         distances.append(self.symbol_to_distance("EOM"))
 
-        # Since the Morse signals are encoded in the distance between calls, an
-        # extra call is needed in order for receiver actually get the EOM and
-        # see that the transmission has terminated.
+        # Since the Morse symbols are encoded in the distance between periods,
+        # an extra pulse is needed in order for the receiver to actually get
+        # the EOM and see that the transmission has terminated.
         distances.append(0)
 
         return distances