[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 {
|
||||
switch (mType) {
|
||||
case BYTE:
|
||||
ret = Byte.decode(text);
|
||||
break;
|
||||
case INT:
|
||||
case SHORT:
|
||||
ret = Integer.decode(text);
|
||||
break;
|
||||
case INT:
|
||||
case LONG:
|
||||
case ADDR:
|
||||
ret = Long.decode(text);
|
||||
|
|
Loading…
Reference in a new issue