fix CONFIG_UART_PROTOCOL check

This commit is contained in:
Samuel Sadok
2018-03-11 21:36:06 -07:00
parent 9a9826b8ce
commit 7a6f925e96
+1 -1
View File
@@ -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.")