From b43094a980e147a258b93d218b14a230effb3085 Mon Sep 17 00:00:00 2001 From: "P.BARRY" Date: Wed, 4 Sep 2019 21:44:49 +0200 Subject: [PATCH] fix retry on camera failed --- tools/tools-gphoto2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tools-gphoto2.js b/tools/tools-gphoto2.js index df6acd3..cbe5002 100644 --- a/tools/tools-gphoto2.js +++ b/tools/tools-gphoto2.js @@ -116,10 +116,10 @@ tools.init = function (pCb) { console.log(pErr.grey) console.log('1. Add one SDCard into the device') console.log('2. Take one picture manually') - process.exit(1) + } else { + console.log(`OK: ${output}`.green) } - console.log(`OK: ${output}`.green) - pCb() + pCb(pErr) }) // opn(output)