uart: use machine.Serial as the default output

This commit is contained in:
sago35
2021-05-14 19:13:43 +09:00
committed by Ron Evans
parent ce03bebc34
commit aa17ffd1cb
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ func printMacAddress() {
// Wait for user to open serial console
func waitSerial() {
for !machine.UART0.DTR() {
for !machine.Serial.DTR() {
time.Sleep(100 * time.Millisecond)
}
}
+1 -1
View File
@@ -92,7 +92,7 @@ func main() {
// Wait for user to open serial console
func waitSerial() {
for !machine.UART0.DTR() {
for !machine.Serial.DTR() {
time.Sleep(100 * time.Millisecond)
}
}
+1 -1
View File
@@ -77,7 +77,7 @@ func main() {
// Wait for user to open serial console
func waitSerial() {
for !machine.UART0.DTR() {
for !machine.Serial.DTR() {
time.Sleep(100 * time.Millisecond)
}
}
+1 -1
View File
@@ -74,7 +74,7 @@ func main() {
// Wait for user to open serial console
func waitSerial() {
for !machine.UART0.DTR() {
for !machine.Serial.DTR() {
time.Sleep(100 * time.Millisecond)
}
}