[cooja] plugins/VariableViewer: Fix decoding in stringToValue()
This commit is contained in:
parent
171863a8c5
commit
33b211c0b3
|
@ -625,11 +625,10 @@ public class VariableWatcher extends VisPlugin implements MotePlugin {
|
||||||
try {
|
try {
|
||||||
switch (mType) {
|
switch (mType) {
|
||||||
case BYTE:
|
case BYTE:
|
||||||
ret = Byte.decode(text);
|
case SHORT:
|
||||||
break;
|
|
||||||
case INT:
|
|
||||||
ret = Integer.decode(text);
|
ret = Integer.decode(text);
|
||||||
break;
|
break;
|
||||||
|
case INT:
|
||||||
case LONG:
|
case LONG:
|
||||||
case ADDR:
|
case ADDR:
|
||||||
ret = Long.decode(text);
|
ret = Long.decode(text);
|
||||||
|
|
Loading…
Reference in a new issue