i = 8;
wrp = data_buf[7] & 0x0F;
- wrc = (data_buf[7] & 0x07) >> 4;
+ wrc = (data_buf[7] & 0x07) >> 4; // ICEMAN 20160802, this will always be ZERO
bool hasWRC = (wrc > 0);
bool hasWRP = (wrp > wrc);
// peek at length of the input string so we can
// figure out how many elements to malloc in "data"
bg=en=0;
- param_getptr(Cmd, &bg, &en, cmdp+1);
+ if (param_getptr(Cmd, &bg, &en, cmdp+1)) {
+ errors = true;
+ break;
+ }
len = (en - bg + 1);
// check that user entered even number of characters
break;
}
- param_gethex(Cmd, cmdp+1, data, len);
+ if (param_gethex(Cmd, cmdp+1, data, len)) {
+ errors = true;
+ break;
+ }
len >>= 1;
cmdp += 2;