File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ $ DEV_SERIAL=/dev/tty.usbserial-0001 make miniterm
81
81
82
82
7 . Connect the USB serial to your host PC.
83
83
- Wiring diagram at [ top-level README] ( ../README.md#-usb-serial-output ) .
84
+ - \# # <u >** NOTE** </u > ## TX (transmit) wire connects to the RX (receive) pin.
84
85
- Make sure that you ** DID NOT** connect the power pin of the USB serial. Only RX/TX and GND.
85
86
8 . Connect the RPi to the (USB) power cable and observe the output:
86
87
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def send_payload
82
82
83
83
# override
84
84
def handle_reconnect ( _error )
85
- connetion_reset
85
+ connection_reset
86
86
87
87
puts
88
88
puts "[#{ @name_short } ] ⚡ " \
@@ -107,7 +107,7 @@ def run
107
107
rescue StandardError => e
108
108
handle_unexpected ( e )
109
109
ensure
110
- connetion_reset
110
+ connection_reset
111
111
puts
112
112
puts "[#{ @name_short } ] Bye 👋"
113
113
end
Original file line number Diff line number Diff line change @@ -88,22 +88,22 @@ def terminal
88
88
end
89
89
end
90
90
91
- def connetion_reset
91
+ def connection_reset
92
92
@target_serial &.close
93
93
@target_serial = nil
94
94
@host_console . cooked!
95
95
end
96
96
97
97
# When the serial lost power or was removed during R/W operation.
98
98
def handle_reconnect ( _error )
99
- connetion_reset
99
+ connection_reset
100
100
101
101
puts
102
102
puts "[#{ @name_short } ] ⚡ #{ 'Connection Error: Reinsert the USB serial again' . light_red } "
103
103
end
104
104
105
105
def handle_unexpected ( error )
106
- connetion_reset
106
+ connection_reset
107
107
108
108
puts
109
109
puts "[#{ @name_short } ] ⚡ #{ "Unexpected Error: #{ error . inspect } " . light_red } "
@@ -120,7 +120,7 @@ def run
120
120
rescue StandardError => e
121
121
handle_unexpected ( e )
122
122
ensure
123
- connetion_reset
123
+ connection_reset
124
124
puts
125
125
puts "[#{ @name_short } ] Bye 👋"
126
126
end
You can’t perform that action at this time.
0 commit comments