Closed alexey-malov closed 5 years ago
void CopyByte(const uint8_t byteHolder, uint8_t& byteGetter, const uint8_t position, const uint8_t newPosition)
{
uint8_t mask = 0x1;
mask = (mask & (byteHolder >> position)) << newPosition;
byteGetter = byteGetter | mask;
}