helping Kinetis?

This commit is contained in:
rusefi 2020-09-06 23:17:13 -04:00
parent 8296f54923
commit c6c0bcbd1a
1 changed files with 3 additions and 0 deletions

View File

@ -124,9 +124,12 @@ void appendFast(Logging *logging, const char *text) {
*/
void Logging::vappendPrintf(const char *fmt, va_list arg) {
#if ! EFI_UNIT_TEST
#if EFI_ENABLE_ASSERTS
// todo: Kinetis needs real getCurrentRemainingStack or mock
if (getCurrentRemainingStack() < 128) {
firmwareError(CUSTOM_ERR_6604, "lowstck#5b %s", chThdGetSelfX()->name);
}
#endif // EFI_ENABLE_ASSERTS
int wasLocked = lockAnyContext();
intermediateLogging.vappendPrintfI(this, fmt, arg);
if (!wasLocked) {