Conversation
* Update main.yml * Bump actions/checkout from 4 to 5 (#72) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-python from 5 to 6 (#73) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/upload-artifact from 4 to 5 (#74) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v4...v5) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 5 to 6 (#75) Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/cache from 4 to 5 (#76) Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v4...v5) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/upload-artifact from 5 to 6 (#77) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v5...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update GitHub Actions workflow to use stable versions of actions * Fix vertical_speed_metric conversion from ft/min to m/min (#79) * Initial plan * Fix vertical_speed_metric to use FT_TO_M conversion Co-authored-by: rzeldent <7620231+rzeldent@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rzeldent <7620231+rzeldent@users.noreply.github.com> * Fix artifact name and path in firmware archive step * [WIP] Update GitHub Actions workflow for separate targets and releases (#81) * Initial plan * Update GitHub Actions workflow to use matrix strategy and fix release issues Co-authored-by: rzeldent <7620231+rzeldent@users.noreply.github.com> * Improve cache invalidation by including platformio.ini hash in cache key Co-authored-by: rzeldent <7620231+rzeldent@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rzeldent <7620231+rzeldent@users.noreply.github.com> * Refactor GitHub Actions workflow to simplify artifact handling and update Python version * Fix artifact download pattern in GitHub Actions workflow * Refactor firmware upload steps in GitHub Actions workflow to improve clarity and accuracy * Fix firmware renaming step in GitHub Actions workflow to use 'mv' instead of 'cp' * Add strategy matrix for release job in GitHub Actions workflow * Refactor release job in GitHub Actions workflow to use pattern matching for artifact downloads and uploads * Fix artifact download and upload patterns in GitHub Actions workflow to match all firmware files * Refactor release job in GitHub Actions workflow to simplify file handling for artifact uploads * Bump actions/checkout from 4 to 6 (#82) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/download-artifact from 4 to 7 (#83) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v4...v7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/upload-artifact from 4 to 6 (#84) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v4...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-python from 5 to 6 (#85) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Refactor airline and airport lookup functions to simplify bsearch usage - Updated the lookup_airline function to directly pass the ICAO code to bsearch instead of creating a key structure. - Modified the comparison function in bsearch to compare the ICAO code directly with the airline_t structure. - Similarly, updated the lookup_airport function to pass the IATA code directly to bsearch and adjusted the comparison function accordingly. * Update branch filter to allow all branches in CI workflow * Refactor country representation and update flight display logic - Replaced individual country constants with a consolidated array of country structures in countries.cpp. - Introduced a new function `get_country` to retrieve country details based on country code. - Updated the flight display logic in main.cpp to utilize the new country structure, improving readability and maintainability. - Adjusted logging and image handling for airline and airport country information to reflect the new structure. * Refactor code structure for improved readability and maintainability * Fix aircraft struct: rename 'description' to 'aircraft_type' for clarity * Refactor airport struct for improved clarity and maintainability * Implement feature X to enhance user experience and optimize performance --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: rzeldent <7620231+rzeldent@users.noreply.github.com>
…inter dereference
…g and adjust platformio.ini to set default environment
There was a problem hiding this comment.
Pull request overview
This pull request adds support for formatting non-Latin characters (e.g., accented characters) to their ASCII equivalents for display compatibility. It introduces a new format_to_latin() function and applies it to airline and airport names, fixes vertical speed unit abbreviations, adds latitude/longitude range display to the "no flights" screen, and makes minor UI alignment adjustments.
Changes:
- Added
format_latin.hheader with UTF-8 to ASCII character conversion function - Applied character formatting to airline and airport name displays
- Corrected vertical speed units from "m/m" to "m/min" and "ft/m" to "ft/min"
- Added latitude/longitude range display on the "no flights" screen
- Minor UI alignment adjustments and platformio configuration cleanup
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| include/format_latin.h | New header file implementing UTF-8 to ASCII character conversion with support for common Latin diacritics |
| src/main.cpp | Integrated format_to_latin() for airline/airport names, fixed vertical speed units, added lat/lon range display, adjusted UI alignments |
| platformio.ini | Added default environment configuration, removed hardcoded upload port settings |
| README.md | Updated history with recent changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
include/format_latin.h
Outdated
| } | ||
| else | ||
| { | ||
| // ASCII character, copy as-is else // Invalid UTF-8, replace with ? |
There was a problem hiding this comment.
The comment on this line is malformed. It appears to have two separate comments merged into one: "// ASCII character, copy as-is else // Invalid UTF-8, replace with ?". This should be split into two separate lines or rewritten for clarity.
| // ASCII character, copy as-is else // Invalid UTF-8, replace with ? | |
| // ASCII character: copy as-is; non-ASCII (invalid UTF-8 here): replace with '?' |
There was a problem hiding this comment.
Replace with:
// ASCII character: copy as-is. Non-ASCII (invalid UTF-8 here), replace with '?'
There was a problem hiding this comment.
@copilot : ASCII character: copy as-is. Non-ASCII (invalid UTF-8 here), replace with '?'
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ate display_flights function for clarity in latitude/longitude range formatting
Formatting non latin characters