[cooja] plugins/VariableViewer: Fix decoding in stringToValue()

This commit is contained in:
Enrico Joerns 2014-08-28 17:16:14 +02:00
parent 171863a8c5
commit 33b211c0b3

View file

@ -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);