Skip to content

Make Arduino_DebugUtils optional #48

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
merged 2 commits into from
Feb 19, 2024

Conversation

pennam
Copy link
Contributor

@pennam pennam commented Jan 22, 2024

If Arduino_DebugUtils is included in the Sketch or in other libraries this library will follow the debug rules configured, otherwise Arduino_DebugUtils is not included and debug is disabled.

Fixes #47

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Jan 22, 2024
Copy link

Memory usage change @ 48e8c8d

Board flash % RAM for global variables %
arduino:mbed:envie_m7 💚 -816 - 0 -0.1 - 0.0 💚 -24 - 0 -0.0 - 0.0
arduino:mbed_giga:giga 💚 -824 - 0 -0.04 - 0.0 💚 -8 - 0 -0.0 - 0.0
arduino:mbed_nicla:nicla_vision 💚 -824 - 0 -0.04 - 0.0 💚 -8 - 0 -0.0 - 0.0
arduino:mbed_opta:opta 💚 -816 - 0 -0.04 - 0.0 💚 -40 - 0 -0.01 - 0.0
Click for full report table
Board examples/OTA_Qspi_Flash
flash
% examples/OTA_Qspi_Flash
RAM for global variables
% examples/OTA_Qspi_Flash_Ethernet
flash
% examples/OTA_Qspi_Flash_Ethernet
RAM for global variables
% examples/OTA_SD_Portenta
flash
% examples/OTA_SD_Portenta
RAM for global variables
% examples/OTA_Usage_Portenta
flash
% examples/OTA_Usage_Portenta
RAM for global variables
%
arduino:mbed:envie_m7 -752 -0.1 -16 -0.0 -816 -0.1 -24 -0.0 -816 -0.1 -16 -0.0 0 0.0 0 0.0
arduino:mbed_giga:giga -824 -0.04 -8 -0.0 0 0.0 0 0.0
arduino:mbed_nicla:nicla_vision -824 -0.04 -8 -0.0 0 0.0 0 0.0
arduino:mbed_opta:opta -816 -0.04 -32 -0.01 -760 -0.04 -40 -0.01 0 0.0 0 0.0
Click for full report CSV
Board,examples/OTA_Qspi_Flash<br>flash,%,examples/OTA_Qspi_Flash<br>RAM for global variables,%,examples/OTA_Qspi_Flash_Ethernet<br>flash,%,examples/OTA_Qspi_Flash_Ethernet<br>RAM for global variables,%,examples/OTA_SD_Portenta<br>flash,%,examples/OTA_SD_Portenta<br>RAM for global variables,%,examples/OTA_Usage_Portenta<br>flash,%,examples/OTA_Usage_Portenta<br>RAM for global variables,%
arduino:mbed:envie_m7,-752,-0.1,-16,-0.0,-816,-0.1,-24,-0.0,-816,-0.1,-16,-0.0,0,0.0,0,0.0
arduino:mbed_giga:giga,-824,-0.04,-8,-0.0,,,,,,,,,0,0.0,0,0.0
arduino:mbed_nicla:nicla_vision,-824,-0.04,-8,-0.0,,,,,,,,,0,0.0,0,0.0
arduino:mbed_opta:opta,-816,-0.04,-32,-0.01,-760,-0.04,-40,-0.01,,,,,0,0.0,0,0.0

@pennam pennam marked this pull request as ready for review February 13, 2024 09:53
- avoid redundant definition
- incorporate a noop to avoid issues
@andreagilardoni andreagilardoni merged commit d519a31 into arduino-libraries:main Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug.print - could Debug inclusion be optional?
3 participants