Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kisChang
Copy link

@kisChang kisChang commented Mar 31, 2023

Split and submit from pr3, I am not familiar with CMake, I don't know what big impact this change will bring

CMakeLists.txt Outdated
@@ -107,6 +107,11 @@ if (PICOWOTA_WIFI_AP)
message("Building in WiFi AP mode.")
endif()

if (BOOTLOADER_ENTRY_PIN)
Copy link
Owner

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"
Copy link
Owner

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

Copy link
Owner

@usedbytes usedbytes left a 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

@kisChang
Copy link
Author

kisChang commented Apr 3, 2023

good opinion😃
fixed name and message
BOOTLOADER_ENTRY_PIN on main.c, so I took the name ...

@kisChang kisChang changed the title add CMake variables BOOTLOADER_ENTRY_PIN add CMake variables PICOWOTA_ENTRY_PIN Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants