Browse Source

Remove extra cast

Scott Lahteine 4 years ago
parent
commit
d932cd9be1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/feature/meatpack.cpp

+ 2
- 2
Marlin/src/feature/meatpack.cpp View File

89
     out = kFirstCharIsLiteral;
89
     out = kFirstCharIsLiteral;
90
   else {
90
   else {
91
     const uint8_t chr = pk & 0x0F;
91
     const uint8_t chr = pk & 0x0F;
92
-    chars_out[0] = meatPackLookupTable[(uint8_t)chr]; // Set the first char
92
+    chars_out[0] = meatPackLookupTable[chr]; // Set the first char
93
   }
93
   }
94
 
94
 
95
   // Check if upper nybble is 1111... if so, we don't need the second char.
95
   // Check if upper nybble is 1111... if so, we don't need the second char.
97
     out |= kSecondCharIsLiteral;
97
     out |= kSecondCharIsLiteral;
98
   else {
98
   else {
99
     const uint8_t chr = (pk >> 4) & 0x0F;
99
     const uint8_t chr = (pk >> 4) & 0x0F;
100
-    chars_out[1] = meatPackLookupTable[(uint8_t)chr]; // Set the second char
100
+    chars_out[1] = meatPackLookupTable[chr]; // Set the second char
101
   }
101
   }
102
 
102
 
103
   return out;
103
   return out;

Loading…
Cancel
Save