* Fix issue with % in log output conflicting with templating character

* Fix issue with % in log output conflicting with templating character

- Split index_html string in header and footer part
- Use header and footer for index html template page
- Fix missing html and head tags in minified index html.
- Do not use templating engine for debug and can log pages, by using index html header and footer directly in generated content.

* Change pct to %.

* Revert "Fix crash caused by percentage char"

This reverts commit 04a68fc89e.
The original commit only fixed the symptoms, the cause has been fixed,
now we ran revert these.

* Revert "Remove percentage sign from logging"

This reverts commit af05f28755.
The original commit only fixed the symptoms, the cause has been fixed,
now we ran revert these.
This commit is contained in:
mvgalen 2025-01-02 13:22:52 +01:00 committed by GitHub
parent 850031ccf9
commit 3d1f535b09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 111 additions and 93 deletions

View file

@ -2713,7 +2713,7 @@ void print_SOC(char* header, int SOC) {
if (hundredth < 10)
logging.print(0);
logging.print(hundredth);
logging.println("pct");
logging.println("%");
}
void printFaultCodesIfActive() {