MMU: allow inlining UInt16ToHex

Saves 22 bytes of Flash
This commit is contained in:
Guðni Már Gilbert 2024-03-28 23:25:40 +00:00 committed by gudnimg
parent 592fc56bfc
commit 61b4270129
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ uint8_t Protocol::UInt8ToHex(uint8_t value, uint8_t *dst) {
return charsOut; return charsOut;
} }
uint8_t __attribute__((noinline)) Protocol::UInt16ToHex(uint16_t value, uint8_t *dst) { uint8_t Protocol::UInt16ToHex(uint16_t value, uint8_t *dst) {
constexpr uint16_t topNibbleMask = 0xf000; constexpr uint16_t topNibbleMask = 0xf000;
if (value == 0) { if (value == 0) {
*dst = '0'; *dst = '0';