Skip to content

Commit ac76b45

Browse files
committed
fix E302 error (flake 8)
1 parent 9c5aa69 commit ac76b45

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

morseinterpreter.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@
4646
"!": "--..--",
4747
" ": " "}
4848

49+
4950
def pinLed(pin):
5051
return machine.Pin(pin, machine.Pin.OUT)
5152

53+
5254
def flash(pin, sec):
5355
pin.value(False)
5456
time.sleep(sec)
@@ -57,8 +59,9 @@ def flash(pin, sec):
5759

5860
return
5961

62+
6063
def send(pin,
61-
message="Hola mundo!",
64+
message="Bienvenido!",
6265
short=0.5):
6366
"""
6467
message: mensaje a interpretar (por defecto: Hola mundo!")
@@ -92,12 +95,12 @@ def send(pin,
9295

9396
if e == " ":
9497
flash(pin, space)
95-
98+
9699
try:
97100
send(pin=pinLed(16))
98101

99102
except KeyboardInterrupt:
100103
print("Se ha interrumpido el programa")
101104

102105
else:
103-
print("Programa finalizado")
106+
print("Programa finalizado")

0 commit comments

Comments
 (0)