Skip to content

Simplify our code by using std::cout from ESP32-S3 runtime environment #110

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

Merged

Conversation

dhebbeker
Copy link
Member

The runtime environment bundled within the GCC Toolchain for Espressif ESP32-S3 Xtensa MCUs apparently already maps std::cout to serial interface. No need to maintain our own version of it.

This resolves #87.

…ent.

The runtime environment bundled within the [GCC Toolchain for Espressif ESP32-S3 Xtensa MCUs](https://registry.platformio.org/tools/espressif/toolchain-xtensa-esp32s3) apparently already maps `std::cout` to serial interface.
No need to maintain our own version of it.
@dhebbeker dhebbeker added the code improvement Improves the quality of the code without affecting the functionality of the software. label Feb 23, 2024
Copy link
Member Author

@dhebbeker dhebbeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

RAM:   [==        ]  24.0% (used 78560 bytes from 327680 bytes)
Flash: [==        ]  24.1% (used 804141 bytes from 3342336 bytes)

After:

RAM:   [==        ]  23.8% (used 78128 bytes from 327680 bytes)
Flash: [==        ]  24.0% (used 803721 bytes from 3342336 bytes)

Note: The job for generating the documentation fails because of the branch name. This is irrelevant and may be ignored.

@dhebbeker dhebbeker marked this pull request as ready for review February 23, 2024 17:00
@dhebbeker dhebbeker enabled auto-merge February 23, 2024 17:01
@dhebbeker dhebbeker merged commit ea68114 into develop Feb 25, 2024
@dhebbeker dhebbeker deleted the feature/87-use_`std__cout`_instead_of_`serial_port__cout` branch February 25, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code improvement Improves the quality of the code without affecting the functionality of the software.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use std::cout instead of serial_port::cout
2 participants