Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2021-06-13 20:47:12 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2021-06-13 20:47:12 +0300
commit0735671ae64fb52b8c06c8aa58665124be48f4d2 (patch)
tree2cef74dfe2fed3559af2ba67261621e9fe5d1bb4 /js/helpers.js
parent1d84fa0061260997122cd58d3c5715a85b353497 (diff)
Update STM32DFU procedure for H7 support
Diffstat (limited to 'js/helpers.js')
-rw-r--r--js/helpers.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/helpers.js b/js/helpers.js
index ecf72651..25ff1bae 100644
--- a/js/helpers.js
+++ b/js/helpers.js
@@ -1,6 +1,18 @@
/*global $*/
'use strict';
+function checkChromeRuntimeError() {
+ if (chrome.runtime.lastError) {
+ console.error(
+ `Chrome API Error: ${chrome.runtime.lastError.message}.\n Traced ${
+ new Error().stack
+ }`
+ );
+ return true;
+ }
+ return false;
+}
+
function constrain(input, min, max) {
if (input < min) {