mirror of
https://github.com/espressif/openthread.git
synced 2026-09-03 07:40:10 +00:00
[diag] add gpio mode commands (#8391)
This commit adds diag commands for setting the GPIO mode to resolve the conflict https://github.com/openthread/openthread/issues/8362.
This commit is contained in:
@@ -161,6 +161,20 @@ send "diag gpio get 0\n"
|
||||
expect "1"
|
||||
expect_line "Done"
|
||||
|
||||
send "diag gpio mode 0 in\n"
|
||||
expect_line "Done"
|
||||
|
||||
send "diag gpio mode 0\n"
|
||||
expect "in"
|
||||
expect_line "Done"
|
||||
|
||||
send "diag gpio mode 0 out\n"
|
||||
expect_line "Done"
|
||||
|
||||
send "diag gpio mode 0\n"
|
||||
expect "out"
|
||||
expect_line "Done"
|
||||
|
||||
send "diag invalid_commad\n"
|
||||
expect "Error 35: InvalidCommand"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user