mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
unregistering visualizer skin
This commit is contained in:
parent
8fb744edb1
commit
85a4265f8c
@ -144,11 +144,16 @@ public class UDGM extends AbstractRadioMedium {
|
|||||||
}
|
}
|
||||||
dgrm.requestEdgeAnalysis();
|
dgrm.requestEdgeAnalysis();
|
||||||
|
|
||||||
/* Register visualizer skin.
|
/* Register visualizer skin */
|
||||||
* TODO Should be unregistered when radio medium is removed */
|
|
||||||
Visualizer.registerVisualizerSkin(UDGMVisualizerSkin.class);
|
Visualizer.registerVisualizerSkin(UDGMVisualizerSkin.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removed() {
|
||||||
|
super.removed();
|
||||||
|
|
||||||
|
Visualizer.unregisterVisualizerSkin(UDGMVisualizerSkin.class);
|
||||||
|
}
|
||||||
|
|
||||||
public void setTxRange(double r) {
|
public void setTxRange(double r) {
|
||||||
TRANSMITTING_RANGE = r;
|
TRANSMITTING_RANGE = r;
|
||||||
dgrm.requestEdgeAnalysis();
|
dgrm.requestEdgeAnalysis();
|
||||||
|
Loading…
Reference in New Issue
Block a user