1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-21/Flight Bootloader - small bug fix

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1683 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
zedamota 2010-09-18 23:38:45 +00:00 committed by zedamota
parent c9752a6a3a
commit 128df749f0

View File

@ -262,7 +262,7 @@ void processComand(uint8_t *xReceive_Buffer) {
Data += xReceive_Buffer[DATA + 3 + offset];
aux = baseOfAdressType(TransferType) + (uint32_t)(
Count * 14 * 4 + x * 4);
uint8_t result = 0;
result = 0;
for (int retry = 0; retry < MAX_WRI_RETRYS; ++retry) {
if (result == 0) {
result = (FLASH_ProgramWord(aux, Data)