-
Notifications
You must be signed in to change notification settings - Fork 3
Qspi formatter #32
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
base: main
Are you sure you want to change the base?
Qspi formatter #32
Conversation
Memory usage change @ 838aba2
Click for full report table
Click for full report CSV
|
if (_otaData.size() < 5 * 1024 * 1024) { | ||
return false; | ||
} | ||
Serial.println("OTA partition size: " + String((unsigned int)_otaData.size())); |
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.
Should we print the size of the partition before returning error? this should provide better feedback to the user. We can apply the same procedure to all the other partitions. Probably we could just need 3MB for the ota, instead of 5.
if (_otaData.size() < 5 * 1024 * 1024) { | |
return false; | |
} | |
Serial.println("OTA partition size: " + String((unsigned int)_otaData.size())); | |
Serial.print("OTA partition size: " + String((unsigned int)_otaData.size())); | |
if (_otaData.size() < 5 * 1024 * 1024) { | |
Serial.println(" ERROR: partition size too small"); | |
return false; | |
} | |
Serial.println(); |
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.
Overall the PR is fine, I would adjust the Serial messages printed
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #32 +/- ##
=======================================
Coverage 29.85% 29.85%
=======================================
Files 27 27
Lines 1819 1819
=======================================
Hits 543 543
Misses 1276 1276 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I kept the prints in a separate commit only for testing purpose. I will remove them before merge the PR. |
Memory usage change @ be0c44b
Click for full report table
Click for full report CSV
|
Memory usage change @ 05e7299
Click for full report table
Click for full report CSV
|
Added a class to handle common QSPI operations