Copy editing and UART clarification.

pull/169/head
Hamish Poole 2 years ago committed by Andre Richter
parent 840f6d6f42
commit f7d3645d88

@ -81,6 +81,7 @@ $ DEV_SERIAL=/dev/tty.usbserial-0001 make miniterm
7. Connect the USB serial to your host PC.
- Wiring diagram at [top-level README](../README.md#-usb-serial-output).
- \## <u>**NOTE**</u> ## TX (transmit) wire connects to the RX (receive) pin.
- Make sure that you **DID NOT** connect the power pin of the USB serial. Only RX/TX and GND.
8. Connect the RPi to the (USB) power cable and observe the output:

@ -82,7 +82,7 @@ class MiniPush < MiniTerm
# override
def handle_reconnect(_error)
connetion_reset
connection_reset
puts
puts "[#{@name_short}] ⚡ " \
@ -107,7 +107,7 @@ class MiniPush < MiniTerm
rescue StandardError => e
handle_unexpected(e)
ensure
connetion_reset
connection_reset
puts
puts "[#{@name_short}] Bye 👋"
end

@ -88,7 +88,7 @@ class MiniTerm
end
end
def connetion_reset
def connection_reset
@target_serial&.close
@target_serial = nil
@host_console.cooked!
@ -96,14 +96,14 @@ class MiniTerm
# When the serial lost power or was removed during R/W operation.
def handle_reconnect(_error)
connetion_reset
connection_reset
puts
puts "[#{@name_short}] ⚡ #{'Connection Error: Reinsert the USB serial again'.light_red}"
end
def handle_unexpected(error)
connetion_reset
connection_reset
puts
puts "[#{@name_short}] ⚡ #{"Unexpected Error: #{error.inspect}".light_red}"
@ -120,7 +120,7 @@ class MiniTerm
rescue StandardError => e
handle_unexpected(e)
ensure
connetion_reset
connection_reset
puts
puts "[#{@name_short}] Bye 👋"
end

Loading…
Cancel
Save