1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Fix FirmwareIAP module, as it failed to reset the board if the object was queried before for other purposes.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3080 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2011-03-26 12:00:08 +00:00 committed by edouard
parent 1ef9eceac5
commit bce3d21a0f

View File

@ -185,6 +185,7 @@ static void FirmwareIAPCallback(UAVObjEvent* ev)
break; break;
default: default:
iap_state = IAP_STATE_READY; iap_state = IAP_STATE_READY;
last_time = 0; // Reset the time counter, as we are not doing a IAP reset
break; break;
} }
} }