Modify shutdown seqeunce. Now a F107 in sleep mode reacts on the reset pin after...
[fw/stlink] / flash / main.c
index 609a6f7d3b7b549afe2953077656d3535ed7dfb3..106e52c2917a9d9605f3103b78136b3ed03aac44 100644 (file)
@@ -135,8 +135,7 @@ int main(int ac, char** av)
  on_error:
   if (sl != NULL)
   {
-    stlink_reset(sl);
-    stlink_run(sl);
+    stlink_exit_debug_mode(sl);
     stlink_close(sl);
   }