From d932cd9be1616245f116bfc0354875a242724017 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 27 Jan 2021 15:22:55 -0600 Subject: [PATCH] Remove extra cast --- Marlin/src/feature/meatpack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/feature/meatpack.cpp b/Marlin/src/feature/meatpack.cpp index 5a5358d61..7dd856c8a 100644 --- a/Marlin/src/feature/meatpack.cpp +++ b/Marlin/src/feature/meatpack.cpp @@ -89,7 +89,7 @@ uint8_t MeatPack::unpack_chars(const uint8_t pk, uint8_t* __restrict const chars out = kFirstCharIsLiteral; else { const uint8_t chr = pk & 0x0F; - chars_out[0] = meatPackLookupTable[(uint8_t)chr]; // Set the first char + chars_out[0] = meatPackLookupTable[chr]; // Set the first char } // Check if upper nybble is 1111... if so, we don't need the second char. @@ -97,7 +97,7 @@ uint8_t MeatPack::unpack_chars(const uint8_t pk, uint8_t* __restrict const chars out |= kSecondCharIsLiteral; else { const uint8_t chr = (pk >> 4) & 0x0F; - chars_out[1] = meatPackLookupTable[(uint8_t)chr]; // Set the second char + chars_out[1] = meatPackLookupTable[chr]; // Set the second char } return out;