From 2c317784dc94d28677862cbdc35177e582e0a4a6 Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Wed, 15 Jul 2020 17:08:40 +0200 Subject: [PATCH] dongle-flash: automatic zip cleanup --- tools/dongle-flash/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/dongle-flash/src/main.rs b/tools/dongle-flash/src/main.rs index 4c96d56..829594b 100644 --- a/tools/dongle-flash/src/main.rs +++ b/tools/dongle-flash/src/main.rs @@ -99,7 +99,8 @@ if the red LED was blinking and you got this message then the device wasn't corr ihex }; - let dfu = ihex.with_extension("zip"); + // create in temp folder for automatic cleanup + let dfu = dir.path().join(filename).with_extension("zip"); println!("packaging iHex using nrfutil ...");