From ceda8782c87936f030d04a330e4aae871023128e Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:48:24 +0100 Subject: [PATCH] Berry fix bytes getter for 3-bytes big-endian (#19945) --- lib/libesp32/berry/src/be_byteslib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libesp32/berry/src/be_byteslib.c b/lib/libesp32/berry/src/be_byteslib.c index 0a5c1747e6ea..c26a45df28aa 100644 --- a/lib/libesp32/berry/src/be_byteslib.c +++ b/lib/libesp32/berry/src/be_byteslib.c @@ -364,7 +364,7 @@ static uint32_t buf_get3_le(buf_impl* attr, size_t offset) return 0; } -static uint16_t buf_get3_be(buf_impl* attr, size_t offset) +static uint32_t buf_get3_be(buf_impl* attr, size_t offset) { if ((int32_t)offset + 2 < attr->len) { return attr->bufptr[offset+2] | (attr->bufptr[offset+1] << 8) | (attr->bufptr[offset] << 16);