We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 61e3536 + e26b28d commit 88513efCopy full SHA for 88513ef
2 files changed
source/hardware/EventDrivenGP.h
@@ -722,6 +722,13 @@ namespace emp {
722
program.Clear();
723
}
724
725
+ /// clear program, this also requires resetting hardware
726
+ void ResetProgram() {
727
+ emp_assert(!is_executing);
728
+ ResetHardware();
729
+ program.Clear();
730
+ }
731
+
732
/// Reset only hardware, not program.
733
/// Not allowed to reset hardware during execution.
734
void ResetHardware() {
0 commit comments