-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Can't override bool verifyRollbackLater() #7423
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
Comments
can you try: extern "C" bool verifyRollbackLater(){
Serial.printf("HI IAM AN OVERRIDDEN FUNCTION!");
return true;
} |
though |
Take a look at the gitter chat: https://gitter.im/espressif/arduino-esp32?at=5d3a08336ec2e14223ec9d24 We discussed several things but not this. I have tried a lot of variations suggested by @chegewara and @atanisoft. |
Well it works. f� IAM AN OVERRIDDEN FUNCTION!
[SYSTEM] - Verifying firmware...
[System] - Ota state: ESP_OTA_IMG_PENDING_VERIFY
[System] - App is valid, rollback cancelled successfully |
Why is the extern c required? |
Because the function is originally defined in |
Thank you for the clarification. |
Board
ESP32-Wrover-E
Device Description
custom
Hardware Configuration
custom
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
Windows 11
Flash frequency
80mhz
PSRAM enabled
yes
Upload speed
115200
Description
Can't overwrite bool verifyRollbackLater(); for OTA verify.
If i modify
in
esp32-hal-misc.c
toit is working.
Printing:
Sketch
Debug Message
Other Steps to Reproduce
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: