mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-20 06:28:03 +08:00
fix CONFIG_UART_PROTOCOL check
This commit is contained in:
@@ -56,7 +56,7 @@ end
|
||||
|
||||
-- GPIO settings
|
||||
if tup.getconfig("STEP_DIR") == "y" then
|
||||
if tup.getconfig("UART_PROTOCOL") != "none" then
|
||||
if tup.getconfig("UART_PROTOCOL") == "none" then
|
||||
FLAGS += "-DUSE_GPIO_MODE_STEP_DIR"
|
||||
else
|
||||
error("Step/dir mode conflicts with UART. Set CONFIG_UART_PROTOCOL to none.")
|
||||
|
||||
Reference in New Issue
Block a user