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:
parent
ae8e648e7a
commit
eeae281f7f
2 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue