flash_main: writeToFlashIfPending() do nothing if EFI_FLASH_WRITE_THREAD
This commit is contained in:
parent
83762a0948
commit
aa62fea109
|
@ -93,8 +93,11 @@ bool getNeedToWriteConfiguration() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void writeToFlashIfPending() {
|
void writeToFlashIfPending() {
|
||||||
|
#if EFI_FLASH_WRITE_THREAD
|
||||||
// with a flash write thread, the schedule happens directly from
|
// with a flash write thread, the schedule happens directly from
|
||||||
// setNeedToWriteConfiguration, so there's nothing to do here
|
// setNeedToWriteConfiguration, so there's nothing to do here
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
if (allowFlashWhileRunning() || !getNeedToWriteConfiguration()) {
|
if (allowFlashWhileRunning() || !getNeedToWriteConfiguration()) {
|
||||||
// Allow sensor timeouts again now that we're done (and a little time has passed)
|
// Allow sensor timeouts again now that we're done (and a little time has passed)
|
||||||
Sensor::inhibitTimeouts(false);
|
Sensor::inhibitTimeouts(false);
|
||||||
|
|
Loading…
Reference in New Issue