-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Guard crypto parts in "Update" to save resources #10630
base: release/v3.1.x
Are you sure you want to change the base?
Conversation
👋 Hello Jason2866, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
libraries/Update/src/Update.h
Outdated
@@ -63,6 +63,7 @@ class UpdateClass { | |||
*/ | |||
bool begin(size_t size = UPDATE_SIZE_UNKNOWN, int command = U_FLASH, int ledPin = -1, uint8_t ledOn = LOW, const char *label = NULL); | |||
|
|||
#ifdef UPDATE_CRYPT |
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.
where would this UPDATE_CRYPT
come from? Something is wrong here
We can not accept this as-is.
|
Test Results 61 files 61 suites 5m 46s ⏱️ Results for commit cdc7ca1. ♻️ This comment has been updated with latest results. |
1.) Why in #9893 it is done the same way? |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
|
The last commit change the behaviour to not change anything until the user sets the define. |
This PR guards the crypto parts in library Update.
By doing this flash space is saved, since most users don't use crypto updates. To disable crypto updates just adding
#define UPDATE_NOCRYPT
to the sketch needs to be done.(similar to #9893)