fix bounds check

This commit is contained in:
Matthew Kennedy 2020-12-10 23:49:51 -08:00
parent 327e3b08ec
commit 70ea760717
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void RunBootloaderLoop()
sendNak();
}
// Don't allow out of bounds writes
else if (embeddedData < 0 || embeddedData > 26 * 1024)
else if (embeddedData >= 26 * 1024)
{
sendNak();
}