aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-11 16:09:12 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-11 16:09:12 +0200
commit29ac4ab17bdc882f0f85666cb82320ca8075ba95 (patch)
tree2879ff2c8c68bd6685a59ca25e91beb4c6f76e8f /Software/Visual_Studio/SideChains
parent08686cebb5b2e517cd356bc33d79205d8fcc8d66 (diff)
downloadTango-29ac4ab17bdc882f0f85666cb82320ca8075ba95.tar.gz
Tango-29ac4ab17bdc882f0f85666cb82320ca8075ba95.zip
Implemented TechBoard "New Project" properly.
Changed MS => PPC default intent to Diagnostics. Implemented producer/consumer queue for NavigationControl. Fixed issue with empty points pushed to RealTimerGraphX. Implemented ExternalBridgeService pinging to keep connection. Fixed issue with Firmware upgrade DFU upload failure, now fails all transport components.
Diffstat (limited to 'Software/Visual_Studio/SideChains')
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs
index 0331ab3eb..4934a9013 100644
--- a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs
@@ -249,8 +249,16 @@ namespace RealTimeGraphX
GraphDataPoint min_y = _range.MinimumY;
GraphDataPoint max_y = _range.MaximumY;
- min_x = _to_render.First().Value.XX.First();
- max_x = _to_render.First().Value.XX.Last();
+ if (_to_render.Count > 0 && _to_render.First().Value.XX.Count > 0)
+ {
+ min_x = _to_render.First().Value.XX.First();
+ max_x = _to_render.First().Value.XX.Last();
+ }
+ else
+ {
+ Thread.Sleep(RefreshRate);
+ continue;
+ }
if (_range.AutoY)
{
@@ -342,6 +350,7 @@ namespace RealTimeGraphX
catch (Exception ex)
{
Debug.WriteLine($"Error in RealTimeGraphX:\n{ex.ToString()}");
+ Thread.Sleep(RefreshRate);
}
}
else