Skip to content

Commit

Permalink
Fixes compilation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Apr 1, 2023
1 parent 3259562 commit 5c83605
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/freertos_drivers/ti/TivaEEPROMFile.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public:
size_t word_len = len & ~0x3;
if (word_len)
{
HASSERT(index & 0x3 == 0);
HASSERT((index & 0x3) == 0);
MAP_EEPROMProgram((uint32_t *)b, index + byteOffset_, word_len);
index += word_len;
b += word_len;
Expand All @@ -105,7 +105,7 @@ public:
// Partial write at the end.
if (len & 0x3)
{
HASSERT(index & 0x3 == 0);
HASSERT((index & 0x3) == 0);
uint32_t rd = 0;
MAP_EEPROMRead(&rd, index + byteOffset_, 4);
memcpy(&rd, b, len);
Expand Down Expand Up @@ -141,7 +141,7 @@ public:
size_t word_len = len & ~0x3;
if (word_len)
{
HASSERT(index & 0x3 == 0);
HASSERT((index & 0x3) == 0);
MAP_EEPROMRead((uint32_t *)b, index + byteOffset_, word_len);
index += word_len;
b += word_len;
Expand All @@ -151,7 +151,7 @@ public:
// Partial read at the end.
if (len & 0x3)
{
HASSERT(index & 0x3 == 0);
HASSERT((index & 0x3) == 0);
uint32_t rd = 0;
MAP_EEPROMRead(&rd, index + byteOffset_, 4);
memcpy(b, &rd, len);
Expand Down

0 comments on commit 5c83605

Please sign in to comment.