mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Plot] Fix wiring on plot updater
Fix usages of the plot updater, introduced to track real-time telemetry to remove the need to cache values elsewhere. This allows memory usage to be decreased for WTD-751.
This commit is contained in:
@ -78,7 +78,10 @@ define(
|
||||
}
|
||||
|
||||
function updateValues() {
|
||||
modeOptions.getModeHandler().plotTelemetry(updater);
|
||||
if (updater) {
|
||||
updater.update();
|
||||
modeOptions.getModeHandler().plotTelemetry(updater);
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
@ -92,8 +95,10 @@ define(
|
||||
domainObject,
|
||||
updateValues
|
||||
);
|
||||
setupAxes(subscription.getMetadata());
|
||||
recreateUpdater();
|
||||
if (subscription) {
|
||||
setupAxes(subscription.getMetadata());
|
||||
recreateUpdater();
|
||||
}
|
||||
}
|
||||
|
||||
$scope.$watch('domainObject', subscribe);
|
||||
|
Reference in New Issue
Block a user