mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
Fixed casts.
This commit is contained in:
parent
60950dd032
commit
266a7085d9
1 changed files with 2 additions and 2 deletions
|
@ -3977,10 +3977,10 @@ static void printResource(uint8_t dumpMask)
|
|||
}
|
||||
|
||||
for (int index = 0; index < MAX_RESOURCE_INDEX(resourceTable[i].maxIndex); index++) {
|
||||
const ioTag_t ioTag = *((const uint8_t *)currentConfig + resourceTable[i].stride * index + resourceTable[i].offset);
|
||||
const ioTag_t ioTag = *(ioTag_t *)((const uint8_t *)currentConfig + resourceTable[i].stride * index + resourceTable[i].offset);
|
||||
ioTag_t ioTagDefault = NULL;
|
||||
if (defaultConfig) {
|
||||
ioTagDefault = *((const uint8_t *)defaultConfig + resourceTable[i].stride * index + resourceTable[i].offset);
|
||||
ioTagDefault = *(ioTag_t *)((const uint8_t *)defaultConfig + resourceTable[i].stride * index + resourceTable[i].offset);
|
||||
}
|
||||
|
||||
const bool equalsDefault = ioTag == ioTagDefault;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue