diff --git a/libs/Utils/include/MemoryUtils.h b/libs/Utils/include/MemoryUtils.h index 777e55b955..30b35db947 100644 --- a/libs/Utils/include/MemoryUtils.h +++ b/libs/Utils/include/MemoryUtils.h @@ -28,7 +28,7 @@ constexpr auto combineBytes(TwoBytes bytes) noexcept -> uint16_t auto both = uint16_t {}; both = bytes.high; - both = both << 8; + both = both << uint16_t {8}; both |= bytes.low; return both;