-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The firmware should not use even one string, the strings we have are static, so they can be substituted by an id + arguments (kind of like a packet), and have the corresponding strings in a json in the adj.
If done with a githook, it could look something like this:
// Before
ErrorHandler("HAL error handler triggered");
// After
// @error_id "HAL error handler triggered" [STLIB.1]
ErrorHandler(STLIB.1);for strings without arguments, and:
// Before
ErrorHandler("HAL error handler triggered %i", 5);
// After
// @error_id "HAL error handler triggered %i" [STLIB.1]
ErrorHandler(STLIB.1, 5);for string with arguments.
It could be executed as a pre-commit.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels