Skip to content

Commit

Permalink
patch for libgphoto2
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Dec 16, 2016
1 parent 62f8e3f commit 8dd724c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ if (VIEW_HARDWARE) {
}

var patchLibGPhoto = function() {
console.log("patching libgphoto2...");
updates.patchLibGPhoto(function(err) {
console.log("patching libgphoto2 complete:", err);
if(!err) {
console.log("compiling libgphoto2...");
updates.installLibGPhoto(function(err){
process.nextTick(function(){
if(err) { // error compiling
Expand Down Expand Up @@ -1870,9 +1873,9 @@ function startScan() {
}, 500);
scanTimerHandle3 = setTimeout(function() {
if (noble.state == "poweredOn") {
console.log("Starting BLE scan...");
//console.log("Starting BLE scan...");
noble.startScanning(nmx.btServiceIds, false, function(err){
console.log("BLE scan started: ", err);
//console.log("BLE scan started: ", err);
});
}
btleScanStarting = false;
Expand Down

0 comments on commit 8dd724c

Please sign in to comment.