1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Bugfix in dataflash read payload size

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2017-08-27 23:10:33 +10:00
parent ae8e648e7a
commit eeae281f7f
2 changed files with 1 additions and 6 deletions

View file

@ -269,11 +269,6 @@ static void updateArmingStatus(void)
warningLedUpdate();
}
debug[0] = (armingFlags >> 0) & 0x00FF;
debug[1] = (armingFlags >> 8) & 0x00FF;
debug[2] = (armingFlags >> 16) & 0x00FF;
debug[3] = (armingFlags >> 24) & 0x00FF;
}
void annexCode(void)

View file

@ -505,7 +505,7 @@ static void serializeDataflashSummaryReply(sbuf_t *dst)
}
#ifdef USE_FLASHFS
static void serializeDataflashReadReply(sbuf_t *dst, uint32_t address, uint8_t size)
static void serializeDataflashReadReply(sbuf_t *dst, uint32_t address, uint16_t size)
{
// Check how much bytes we can read
const int bytesRemainingInBuf = sbufBytesRemaining(dst);