Crash guard: prevent loading of preset if it has caused crashes.

This commit is contained in:
Robin E. R. Davies
2025-07-21 12:09:27 -04:00
parent b60fbd18f0
commit 7f8b272504
8 changed files with 211 additions and 12 deletions
+3
View File
@@ -35,6 +35,7 @@
#include "PiPedalException.hpp"
#include "DummyAudioDriver.hpp"
#include "SchedulerPriority.hpp"
#include "CrashGuard.hpp"
#include "CpuUse.hpp"
@@ -1595,6 +1596,8 @@ namespace pipedal
throw PiPedalStateException("Unable to start ALSA capture.");
}
CrashGuardLock crashGuardLock;
cpuUse.SetStartTime(cpuUse.Now());
while (true)
{