-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Improve printf types to fix ESP32C6 compatibility #637
base: main
Are you sure you want to change the base?
Conversation
ESP32-C6 Updates Error Details: Format specifier mismatch: You are passing a uint32_t (which is an unsigned 32-bit integer) but using format specifiers meant for int or unsigned int: ESP_LOGD(TAG, "Time enter sleep: %u s", jk_get_32bit(238 + offset)); ESP_LOGI(TAG, " Uptime: %d s", jk_get_32bit(38)); ESP_LOGI(TAG, " Power on count: %d", jk_get_32bit(42)); Solution: You should adjust the format specifiers to match the uint32_t type (which is the data type being returned by jk_get_32bit()). For uint32_t (unsigned 32-bit integer), use %lu: Change %u to %lu for unsigned 32-bit integers in the log messages. Change %d to %ld for signed 32-bit integers if necessary.
Fix sensor names (syssi#634)
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.
LGTM!
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.
Looks good to me!
Are you sure these changes are required for your ESP32 model? Could you share your YAML configuration? |
I couldn't get it working without them. Sure: |
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
added MQTT auto-discovery
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.
Unfortunately this project doesn't compile anymore (without updating ESP-IDF). Furthermore you have introduced some more changes accidentally.
made some changes to fix issues I was having with ESP32C6
might be helpful to others
feel free to add comments or make edits (I'm new to GitHub)