mw_send_frame(mw_fd, MW_GET_REAL_TIME_CLOCK, 0, NULL, 0);
}
if (strncmp(cmdline, "gistr", 5) == 0) {
- mw_send_frame(mw_fd, MW_GET_INFORMATION_STRING, 0, NULL, 0);
+ intopt = cmdline[6]-0x30;
+ if (intopt>=0 && intopt <=3)
+ mdata[0] = intopt;
+ else
+ mdata[0] = 0;
+ mw_send_frame(mw_fd, MW_GET_INFORMATION_STRING, 0, mdata, 1);
}
if (strncmp(cmdline, "gdtype", 6) == 0) {
mw_send_frame(mw_fd, MW_GET_DEVICE_TYPE, 0, NULL, 0);