mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
bin flash update fix (after revorking) & bins
This commit is contained in:
@@ -132,6 +132,7 @@ NRFFlashStorage EEPROM;
|
||||
{
|
||||
|
||||
#if defined(__SAM3X8E__)
|
||||
if (samBufferPos) flush();
|
||||
samBufferPos = 0;
|
||||
#endif
|
||||
|
||||
@@ -219,6 +220,7 @@ NRFFlashStorage EEPROM;
|
||||
#elif defined(__SAM3X8E__)
|
||||
if (samBufferPos)
|
||||
EEPROM.write(startPos+pos-samBufferPos,(byte*)samBuffer,samBufferPos);
|
||||
samBufferPos=0;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user