From d026cdf44da9ffeb53c0552535195fc4582633d5 Mon Sep 17 00:00:00 2001 From: Elijah Parker Date: Mon, 11 Mar 2019 16:48:27 -0500 Subject: [PATCH] libgphoto update, ST4 update --- main.js | 5 +++++ system/updates.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 95b3e1598..c7b31a7b0 100644 --- a/main.js +++ b/main.js @@ -1770,8 +1770,13 @@ if (VIEW_HARDWARE) { var getTrackingMotor = function(trackingMotor) { if(trackingMotor && trackingMotor != 'none') { + var parts = trackingMotor.match(/^([A-Z]+)([0-9]+)(r?)$/); var parts = trackingMotor.match(/^([A-Z]+)([0-9]+)(r?)$/); if(parts && parts.length > 2) { + if(parts[1] == "ST") { + parts[1] = "ST4"; + parts[2] = parts[2].substring(1); + } return { name: parts[1] + '-' + parts[2], reverse: parts[3] == 'r' ? true : false, diff --git a/system/updates.js b/system/updates.js index 0464feeb3..dab4e3b4b 100644 --- a/system/updates.js +++ b/system/updates.js @@ -13,7 +13,7 @@ var baseInstallPath = "/home/view/"; var kernelVersion = "#51 PREEMPT Thu Jan 5 13:15:18 EST 2017"; var uBootVersion = "U-Boot SPL 2016.01 TL+ VIEW -00446-g12f229e-dirty (Dec 23 2016 - 17:47:10)"; -var libgphoto2Version = "2.5.14.31"; +var libgphoto2Version = "2.5.14.32"; var getLibGPhoto2Version = "/usr/local/bin/gphoto2 --version | grep \"libgphoto2 \""; var installLibGPhoto2 = "/usr/bin/test -e /home/view/current/lib/libgphoto2_" + libgphoto2Version + "-1_armhf.deb && dpkg -i /home/view/current/lib/libgphoto2_" + libgphoto2Version + "-1_armhf.deb";