mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Fixed build. Also added 'const' to cast.
This commit is contained in:
parent
4c5f3ff412
commit
bda81afdbd
1 changed files with 3 additions and 2 deletions
|
@ -68,6 +68,7 @@ extern uint8_t __config_end;
|
|||
#include "drivers/sensor.h"
|
||||
#include "drivers/serial.h"
|
||||
#include "drivers/serial_escserial.h"
|
||||
#include "drivers/sonar_hcsr04.h"
|
||||
#include "drivers/stack_check.h"
|
||||
#include "drivers/system.h"
|
||||
#include "drivers/timer.h"
|
||||
|
@ -4256,8 +4257,8 @@ static void printResource(uint8_t dumpMask)
|
|||
}
|
||||
|
||||
for (int index = 0; index < MAX_RESOURCE_INDEX(resourceTable[i].maxIndex); index++) {
|
||||
const ioTag_t ioTag = *((ioTag_t *)currentConfig + resourceTable[i].offset + index);
|
||||
const ioTag_t ioTagDefault = *((ioTag_t *)defaultConfig + resourceTable[i].offset + index);
|
||||
const ioTag_t ioTag = *((const ioTag_t *)currentConfig + resourceTable[i].offset + index);
|
||||
const ioTag_t ioTagDefault = *((const ioTag_t *)defaultConfig + resourceTable[i].offset + index);
|
||||
|
||||
bool equalsDefault = ioTag == ioTagDefault;
|
||||
const char *format = "resource %s %d %c%02d\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue