SaveMySugar/python3-savemysugar.git
8 years agoResume command mode after dialing, always
Antonio Ospite [Thu, 17 Dec 2015 17:08:50 +0000 (18:08 +0100)]
Resume command mode after dialing, always

Put a semicolon after the AT command when dialing the destination
number. Without this, some modems won't accept the ATH command and won't
be able to terminate a call before the receiver has answered.

8 years agoCallDistanceTransceiver.py: resume command mode after dialing
Antonio Ospite [Thu, 17 Dec 2015 11:59:41 +0000 (12:59 +0100)]
CallDistanceTransceiver.py: resume command mode after dialing

Put a semicolon after the AT command when dialing the destination
number. Without this, some modems won't accept the ATH command and won't
be able to terminate a call before the receiver has answered.

8 years agoCallDistanceTransceiver.py: don't put the general case in an else
Antonio Ospite [Thu, 17 Dec 2015 11:56:32 +0000 (12:56 +0100)]
CallDistanceTransceiver.py: don't put the general case in an else

Since the code returns when the particular case of the very first call
occurs, there is no need to put the general case in the else.

8 years agoREADME.md: improve wording and make Corrado's name more visible
Antonio Ospite [Thu, 17 Dec 2015 11:55:05 +0000 (12:55 +0100)]
README.md: improve wording and make Corrado's name more visible

8 years agoModem.py: use the more idiomatic "while True" instead of "while 1"
Antonio Ospite [Mon, 14 Dec 2015 18:53:34 +0000 (19:53 +0100)]
Modem.py: use the more idiomatic "while True" instead of "while 1"

8 years agoMorseTranslator.py: remove unneeded code in sanitize_morse()
Antonio Ospite [Mon, 14 Dec 2015 17:31:44 +0000 (18:31 +0100)]
MorseTranslator.py: remove unneeded code in sanitize_morse()

The Morse string will never contain a '|' because it would have been
already replaced in a previous sanitization step.

Also we don't define anywhere that '|' can act as an alternative word
separator, so it should be replaced with a space just like any other
invalid character.

8 years agoMorseTranslator.py: fix sanitize_text
Antonio Ospite [Mon, 14 Dec 2015 16:38:35 +0000 (17:38 +0100)]
MorseTranslator.py: fix sanitize_text

Use a regex more adherent to the characters actually translated, also
follow the order in which the characters appear in the signals table.

8 years agoInitial import
Antonio Ospite [Thu, 10 Dec 2015 21:31:04 +0000 (22:31 +0100)]
Initial import