]> git.kernelconcepts.de Git - metawatch.git/blobdiff - mw_main.c
Info string inquiry extension
[metawatch.git] / mw_main.c
index 24a25e54290801eeb82edfa1facff4473d2ee234..4b2dd767c8289f9b2cb48e8331a89378a311004a 100644 (file)
--- a/mw_main.c
+++ b/mw_main.c
@@ -273,7 +273,12 @@ void process_cmd(char *cmdline, int clinep, int mw_fd)
                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);