Don't inline the function

Change in memory:
Flash: -44 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2022-09-19 18:07:55 +00:00 committed by Yuri D'Elia
parent b1bee597aa
commit 9bff10add5

View File

@ -156,7 +156,7 @@ static bool cmdqueue_could_enqueue_front(size_t len_asked)
// len_asked does not contain the zero terminator size. // len_asked does not contain the zero terminator size.
// This function may update bufindw, therefore for the power panic to work, this function must be called // This function may update bufindw, therefore for the power panic to work, this function must be called
// with the interrupts disabled! // with the interrupts disabled!
static bool cmdqueue_could_enqueue_back(size_t len_asked) static bool __attribute__((noinline)) cmdqueue_could_enqueue_back(size_t len_asked)
{ {
// MAX_CMD_SIZE has to accommodate the zero terminator. // MAX_CMD_SIZE has to accommodate the zero terminator.
if (len_asked >= MAX_CMD_SIZE) if (len_asked >= MAX_CMD_SIZE)