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. 7. Connect the USB serial to your host PC.
- Wiring diagram at [top-level README](../README.md#-usb-serial-output). - 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. - 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: 8. Connect the RPi to the (USB) power cable and observe the output:

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

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

Loading…
Cancel
Save