Skip to content

Commit

Permalink
no logging
Browse files Browse the repository at this point in the history
  • Loading branch information
8cH9azbsFifZ committed Nov 12, 2023
1 parent 69bc9c6 commit 6d926d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/mopp/src/mopp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def ljust(string, width, fillchar=' '):
# Module for MOPP protocol
# Taken and adjusted from the m32-chat-server implementation by SP9WPN
from math import ceil
import logging

class Mopp:
serial = 1
Expand All @@ -112,7 +111,7 @@ def _str2bin(self, bytes):
return bincode

def mopp(self, speed, msg):
logging.debug("Encoding message with "+str(speed)+" wpm :"+str(msg))
#logging.debug("Encoding message with "+str(speed)+" wpm :"+str(msg))

morse = {
"0" : "-----", "1" : ".----", "2" : "..---", "3" : "...--", "4" : "....-", "5" : ".....",
Expand Down Expand Up @@ -212,7 +211,8 @@ def _mopp2morse(self, sym):
elif sym == '11':
s = 'EOW'
else:
logging.debug ("This should not happen: symbol ", s)
return ""
#logging.debug ("This should not happen: symbol ", s)
return s

def _morse2txt(self, morse):
Expand Down

0 comments on commit 6d926d2

Please sign in to comment.