Loading sdk/build/miphoto/www/index.html +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ <table id="wsFormTable2"> <tr> <td><label for="checkboxWifiOff">Turn off Wifi when shooting<br> timelapse above 1 minute</label></td> <td><label for="checkboxWifiOff">Turn off Wi-Fi when shooting<br> timelapse above 1 minute</label></td> <td style="padding-left: 15px;"><label class="switch"> <input id="checkboxWifiOff" type="checkbox" name="wifiOff" disabled><span class="slider"></span> </label> Loading sdk/build/miphoto/www/script.js +5 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,6 @@ function getDateTime() function wsConnect() { if (!("WebSocket" in window)) Loading Loading @@ -103,6 +102,7 @@ function wsConnect() ws.onerror = function(error){}; } function setState(newState) { document.getElementById("buttonConnect").disabled = false; Loading Loading @@ -163,7 +163,7 @@ function setState(newState) { //DISCONNECTED -> READY case State.DISCONNECTED: notify("Connected!", false, 1000); notify("Connected!", false, 900); ws.send('{"cmd":"RTC_SYNC","param":"' + getDateTime() + '"}'); break; Loading Loading @@ -249,8 +249,10 @@ function powerOffClick() } async function notify(text, error = false, time = 1500) async function notify(text, error = false, time = 0) { if (time === 0) time = text.length * 25 + 700; if (error === true) console.error(text); else Loading sdk/build/miphoto/www/style.css +4 −0 Original line number Diff line number Diff line Loading @@ -229,6 +229,10 @@ table.wrapper { .box { padding: 4%; transform: translate(0, -50%); -webkit-transform: translate(0, -50%); left: 0; right: 0; } #wsFormTable1 > tbody > tr > td:nth-child(2) { Loading sdk/src/codes.h +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ public: GetSetISO = 5172, GetSetBracketingBuiltIn = 4918, GetSetMode = 4611, //button press GetSetPhotoWB = 5168,//TODO GetSetPhotoWB = 5168, GetSetPhotoResolution = 4872, Loading Loading
sdk/build/miphoto/www/index.html +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ <table id="wsFormTable2"> <tr> <td><label for="checkboxWifiOff">Turn off Wifi when shooting<br> timelapse above 1 minute</label></td> <td><label for="checkboxWifiOff">Turn off Wi-Fi when shooting<br> timelapse above 1 minute</label></td> <td style="padding-left: 15px;"><label class="switch"> <input id="checkboxWifiOff" type="checkbox" name="wifiOff" disabled><span class="slider"></span> </label> Loading
sdk/build/miphoto/www/script.js +5 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,6 @@ function getDateTime() function wsConnect() { if (!("WebSocket" in window)) Loading Loading @@ -103,6 +102,7 @@ function wsConnect() ws.onerror = function(error){}; } function setState(newState) { document.getElementById("buttonConnect").disabled = false; Loading Loading @@ -163,7 +163,7 @@ function setState(newState) { //DISCONNECTED -> READY case State.DISCONNECTED: notify("Connected!", false, 1000); notify("Connected!", false, 900); ws.send('{"cmd":"RTC_SYNC","param":"' + getDateTime() + '"}'); break; Loading Loading @@ -249,8 +249,10 @@ function powerOffClick() } async function notify(text, error = false, time = 1500) async function notify(text, error = false, time = 0) { if (time === 0) time = text.length * 25 + 700; if (error === true) console.error(text); else Loading
sdk/build/miphoto/www/style.css +4 −0 Original line number Diff line number Diff line Loading @@ -229,6 +229,10 @@ table.wrapper { .box { padding: 4%; transform: translate(0, -50%); -webkit-transform: translate(0, -50%); left: 0; right: 0; } #wsFormTable1 > tbody > tr > td:nth-child(2) { Loading
sdk/src/codes.h +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ public: GetSetISO = 5172, GetSetBracketingBuiltIn = 4918, GetSetMode = 4611, //button press GetSetPhotoWB = 5168,//TODO GetSetPhotoWB = 5168, GetSetPhotoResolution = 4872, Loading