Skip to content

Commit

Permalink
avr109: handle upload with no eeprom section
Browse files Browse the repository at this point in the history
  • Loading branch information
cibomahto committed Oct 8, 2024
1 parent 59d5bf5 commit b33d79c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libblinky/avr109firmwareloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ void Avr109FirmwareLoader::handleLastCommandFinished()
break;

case State_WriteFlashData:
state = State_WriteEepromData;
if(eepromData.length() > 0) {
state = State_WriteEepromData;
}
else {
state = State_ResetBootloader;
}
doWork();
break;

Expand Down Expand Up @@ -379,6 +384,7 @@ void Avr109FirmwareLoader::doWork()

case State_ResetBootloader:
{
qDebug() << "!!!!!!!!!!!!!!!!! queuing a reset";
commandQueue.enqueue(Avr109Commands::reset());

break;
Expand Down

0 comments on commit b33d79c

Please sign in to comment.