diff --git a/encoder/firmware.php b/encoder/firmware.php index c365b17..073e36b 100755 --- a/encoder/firmware.php +++ b/encoder/firmware.php @@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $payload['device_id'] = $device_id; $payload['project_id'] = "28f27590923d962388f0da125553c5"; - $payload['version'] = 1; + $payload['version'] = $version; $payload = json_encode($payload, JSON_UNESCAPED_UNICODE); openssl_public_encrypt( @@ -395,7 +395,7 @@ EwIDAQAB } function confirmUpdate() { - return confirm("Newer version will be downloaded and installed Do not turn off power , this is irreversible are you sure to continue ? "); + return confirm("Newer version will be downloaded and installed Do not turn off power ."); } function confirmbackup() { @@ -409,7 +409,7 @@ EwIDAQAB