Debug and Tests
-Chart 'heap', ST-AP RSSI
+Chart 'heap', ST-AP RSSI, INA219
System Restart
Counter erase the last flash sector config: ~sys_rdec0x980FE000~
diff --git a/ExampleHTM/dygraph/dygraph.css b/ExampleHTM/dygraph/dygraph.css index 75d5868..ff368d5 100644 --- a/ExampleHTM/dygraph/dygraph.css +++ b/ExampleHTM/dygraph/dygraph.css @@ -4,7 +4,7 @@ .dygraph-legend { position: absolute; - font-size: 14px; + font-size: 12px; z-index: 10; width: 250px; /* labelsDivWidth */ /* @@ -66,7 +66,7 @@ .dygraph-axis-label { /* position: absolute; */ - /* font-size: 14px; */ + font-size: 12px; z-index: 10; line-height: normal; overflow: hidden; diff --git a/ExampleHTM/dygraph/dygraph.js b/ExampleHTM/dygraph/dygraph.js index 4790b3f..1ca7ea0 100644 --- a/ExampleHTM/dygraph/dygraph.js +++ b/ExampleHTM/dygraph/dygraph.js @@ -10,83 +10,35 @@ var process = module.exports = {}; var cachedSetTimeout; var cachedClearTimeout; -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} (function () { try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } + cachedSetTimeout = setTimeout; } catch (e) { - cachedSetTimeout = defaultSetTimout; + cachedSetTimeout = function () { + throw new Error('setTimeout is not defined'); + } } try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } + cachedClearTimeout = clearTimeout; } catch (e) { - cachedClearTimeout = defaultClearTimeout; + cachedClearTimeout = function () { + throw new Error('clearTimeout is not defined'); + } } } ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations return setTimeout(fun, 0); + } else { + return cachedSetTimeout.call(null, fun, 0); } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - } function runClearTimeout(marker) { if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); + clearTimeout(marker); + } else { + cachedClearTimeout.call(null, marker); } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - } var queue = []; var draining = false; diff --git a/ExampleHTM/dygraph/ws_test_ina219.html b/ExampleHTM/dygraph/ws_test_ina219.html index 69ecdd3..021f89f 100644 --- a/ExampleHTM/dygraph/ws_test_ina219.html +++ b/ExampleHTM/dygraph/ws_test_ina219.html @@ -26,7 +26,7 @@ var gu = new Dygraph( series : { 'U': { axis: 'y2' } } - , axes: { y2: {valueRange: [3000, 3500] }} +// , axes: { y2: {valueRange: [3000, 3500] }} // , axes: { y2: {valueRange: [3000, 3500] }, y: {valueRange: [0, 2] }} }); @@ -35,6 +35,7 @@ var rdnextflg = false; var cur_idx = 0; var sig = 10; var ttout = 100; +var wstt; function wsping() { ws.send('ina219'); wstt = setTimeout(wsping, ttout);}; ws = new WebSocket('ws://rtl871x0/web.cgi'); ws.binaryType = 'arraybuffer'; diff --git a/ExampleHTM/dygraph/ws_test_ina219d.html b/ExampleHTM/dygraph/ws_test_ina219d.html index e34f4f5..6e6e7f4 100644 --- a/ExampleHTM/dygraph/ws_test_ina219d.html +++ b/ExampleHTM/dygraph/ws_test_ina219d.html @@ -1,40 +1,55 @@
- +
-Chart 'heap', ST-AP RSSI
+Chart 'heap', ST-AP RSSI, INA219
System Restart
Counter erase the last flash sector config: ~sys_rdec0x980FE000~