mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-02 02:08:25 +00:00
ditch arduino's hacky-hacky FS, back to zephyr native
mg24 fix dfu zip generation fix
This commit is contained in:
@@ -267,12 +267,18 @@ void CompanionMesh::loop()
|
||||
|
||||
void CompanionMesh::markContactsDirty()
|
||||
{
|
||||
_dirty_contacts_expiry = _ms->getMillis() + LAZY_WRITE_DELAY_MS;
|
||||
/* Only set the timer on first dirty — don't keep pushing
|
||||
* the deadline forward or a busy mesh never flushes. */
|
||||
if (!_dirty_contacts_expiry) {
|
||||
_dirty_contacts_expiry = _ms->getMillis() + LAZY_WRITE_DELAY_MS;
|
||||
}
|
||||
}
|
||||
|
||||
void CompanionMesh::markChannelsDirty()
|
||||
{
|
||||
_dirty_channels_expiry = _ms->getMillis() + LAZY_WRITE_DELAY_MS;
|
||||
if (!_dirty_channels_expiry) {
|
||||
_dirty_channels_expiry = _ms->getMillis() + LAZY_WRITE_DELAY_MS;
|
||||
}
|
||||
}
|
||||
|
||||
void CompanionMesh::flushDirtyContacts()
|
||||
|
||||
Reference in New Issue
Block a user