aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--internal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.c b/internal.c
index 4f68456d..9b80f376 100644
--- a/internal.c
+++ b/internal.c
@@ -211,6 +211,9 @@ static int internal_init(const struct programmer_cfg *cfg)
if (ret)
return ret;
+ /* Unconditionally reset global state from previous operation. */
+ laptop_ok = false;
+
/* Default to Parallel/LPC/FWH flash devices. If a known host controller
* is found, the host controller init routine sets the
* internal_buses_supported bitfield.