-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add CMake variables PICOWOTA_ENTRY_PIN #4
base: main
Are you sure you want to change the base?
Conversation
CMakeLists.txt
Outdated
@@ -107,6 +107,11 @@ if (PICOWOTA_WIFI_AP) | |||
message("Building in WiFi AP mode.") | |||
endif() | |||
|
|||
if (BOOTLOADER_ENTRY_PIN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the picowota_retrieve_variable()
helper, like the other variables, and can we use a similar name? Like PICOWOTA_ENTRY_PIN
main.c
Outdated
@@ -83,7 +83,10 @@ struct event { | |||
}; | |||
}; | |||
|
|||
#ifndef BOOTLOADER_ENTRY_PIN | |||
#warning "BOOTLOADER_ENTRY_PIN not defined" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not worth warning about this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good proposal, just some minor comments about the implementation.
Also, I think we need to make sure that it works properly when the variable is defined, but defined to be 0; I'm not sure how if (BOOTLOADER_ENTRY_PIN)
will act in that case
good opinion😃 |
Split and submit from pr3, I am not familiar with CMake, I don't know what big impact this change will bring