mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Fixed errors on KAKUTEF4 target
Added definitions for TIM8_CH3 alternative DMA in timer_def.h (F4) Renamed KAKUTEF4 target directory (removing version - use HW REV, not target name) Fixed signed versus unsigned warning in serial_cli.c
This commit is contained in:
parent
6154a78101
commit
e393d61116
6 changed files with 50 additions and 37 deletions
|
@ -2265,11 +2265,9 @@ static void cliFlashRead(char *cmdline)
|
|||
cliPrintf("Reading %u bytes at %u:\r\n", length, address);
|
||||
|
||||
while (length > 0) {
|
||||
int bytesRead;
|
||||
int bytesRead = flashfsReadAbs(address, buffer, length < sizeof(buffer) ? length : sizeof(buffer));
|
||||
|
||||
bytesRead = flashfsReadAbs(address, buffer, length < sizeof(buffer) ? length : sizeof(buffer));
|
||||
|
||||
for (uint32_t i = 0; i < bytesRead; i++) {
|
||||
for (int i = 0; i < bytesRead; i++) {
|
||||
cliWrite(buffer[i]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue