Skip to content

chore(library): House keeping#135

Merged
ZZ-Cat merged 5 commits intov1.0.x-Maintenance-Branchfrom
House-keeping
Aug 29, 2024
Merged

chore(library): House keeping#135
ZZ-Cat merged 5 commits intov1.0.x-Maintenance-Branchfrom
House-keeping

Conversation

@ZZ-Cat
Copy link
Owner

@ZZ-Cat ZZ-Cat commented Aug 29, 2024

Overview

Note

This Pull Request targets the v1.0.x-Maintenance-Branch

This PR brings various clean-ups, and streamlines the Semantic Versioning for each source and header file.

Details

Streamlined Semantic Versioning

As CRSF for Arduino grows, it has become increasingly tedious to go through every individual file to update the Semantic Version header. Not only that, this is the primary source of clashes when it comes to re-basing CRSF for Arduino onto different branches... namely when a branch's head has been updated.

New debug configuration flags

This Pull Request also brings in a small-ish feature where CRSF for Arduino's boiler plate (IE Name, Version, and Build Date etc) are printed to the Serial Monitor if you have the CRSF_DEBUG_ENABLED flag set to 1.

Another helpful debug feature intorduced by this Pull Request is the CRSF_DEBUG_ENABLE_CONFIGURATION_DUMP flag. Setting this to 1 will show your current configuration of CRSF for Arduino in the Serial Monitor.

The configuration dump identifies your development board and what pins you are currently using with CRSF for Arduino as well as LQI and RSSI thresholds, maximum number of RC channels, minimum and maximum RC channel values (in microseconds) and the centre channel value (also in microseconds).

ZZ-Cat added 5 commits August 17, 2024 10:05
…l header and source file

Currently, with over 28 files, CRSF for Arduino is incredibly tedious to re-base because of these two tags in the boiler plate. In addition to this, the version numbering and dates are already tracked in `CFA_Config.hpp`. Therefore, it is pointless to keep tracking CRSF for Arduino's overall version and date in every individual file. At this point, it's work for work's sake, and it's unnecessarily tedious to do it... even more so as CRSF for Arduino grows and more headers and source files are added over time. The juice is not worth the squeeze to track CRSF for Arduino's version and date in every individual file, when it's more efficient to do it in the config and properties files.
@ZZ-Cat ZZ-Cat self-assigned this Aug 29, 2024
@ZZ-Cat ZZ-Cat merged commit 97d4b38 into v1.0.x-Maintenance-Branch Aug 29, 2024
@ZZ-Cat ZZ-Cat deleted the House-keeping branch August 29, 2024 22:49
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