Skip to content

Rework power table functionality, enhance BLE and logging features - #756

Open
doudar wants to merge 19 commits into
developfrom
loop_test
Open

Rework power table functionality, enhance BLE and logging features#756
doudar wants to merge 19 commits into
developfrom
loop_test

Conversation

@doudar

@doudar doudar commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Rework power table functionality, enhance BLE and logging features

doudar added 19 commits August 24, 2026 05:41
…ble functionality

- Deleted outdated power table files: power_table.ptab and power_table_incomplete.ptab.
- Introduced new test file test_active_ride_table.cpp to validate ride log processing and power table generation.
- Added test file test_power_table_csv.cpp to ensure correct saving and loading of power table data.
- Consolidated test cases in `test_power_table_csv.cpp` to focus on active ride CSV round-trip validation.
- Updated `test_pt_lookup_resistance.cpp` to enhance cadence boundary checks and active ride forward lookup tests.
- Streamlined `test_pt_lookup_watts.cpp` by removing redundant output and focusing on active ride reverse lookup validation.
- Removed unnecessary file output in `test_unity.cpp` and organized test execution for better readability.
- Added checks for monotonicity in lookup functions and ensured proper handling of edge cases in power table lookups.
Improve robustness and add a debug serial hook. Changes: replace byte-conversion macros with well-typed static_cast versions (include/BLE_Common.h); update root CA cert and timestamp (include/cert.h); enable SERIAL_CUSTOM_CHARACTERISTIC in debug build (platformio.ini) and add sdkconfig.S3debug; harden BLE custom characteristic parsing with required-length checks, safe integer assembly, bounds fix, and use setTarget for watts (src/BLE_Custom_Characteristic.cpp); add a newline-delimited serial command interface to invoke the custom characteristic for debugging (src/Main.cpp).
- stream browser firmware uploads through the ESP-IDF OTA API
- avoid Arduino Update's 4 KiB heap allocation
- remove automatic boot-time firmware installation
- retain boot-time web filesystem refresh and missing-file repair
- deprecate the automatic-update setting while preserving compatibility
- regenerate classic and S3 settings assets
- Implement independent initialization of FastAccelStepper for safe operation without TMC UART.
- Improve filesystem upload process with detailed error handling and remounting logic.
- Ensure stepper-related functions check for initialization status to prevent runtime errors.
- Updated cert_updater.py to clarify its usage and removed direct execution in PlatformIO builds.
- Added refreshBLEAdvertisementIp() function to BLE_Server for IP address updates in advertisements.
- Modified syncWebServerFiles() in HTTP_Server to improve filesystem repair logic and error handling.
- Enhanced DirConManager to check for active clients before broadcasting notifications.
- Refactored startWifi() to streamline network service management and improve connection handling.
- Improved error logging and handling across various components for better debugging and reliability.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T14:32:22.151590Z 72a44ca PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

1 participant