]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - winsrc/command.cpp
fix grid so it stays still and only in plotted area
[proxmark3-svn] / winsrc / command.cpp
index bc9fb9dca222df981d30648b218adb52e0f9c6ff..b830922bed9111d3587a8a1008870ba94df347c8 100644 (file)
@@ -2590,9 +2590,7 @@ static void CmdPlot(char *str)
 \r
 static void CmdGrid(char *str)\r
 {\r
-       int x = 0, y = 0;\r
-  sscanf(str, "%i %i", &x, &y);\r
-       SetGraphGrid(x, y);\r
+       sscanf(str, "%i %i", &PlotGridX, &PlotGridY);\r
        RepaintGraphWindow();\r
 }\r
 \r
@@ -2734,7 +2732,7 @@ static struct {
        {"flexdemod",                   CmdFlexdemod,                           1, "Demodulate samples for FlexPass"},\r
        {"fpgaoff",                             CmdFPGAOff,                                     0, "Set FPGA off"},\r
        {"fskdemod",                    CmdFSKdemod,                            1, "Demodulate graph window as a HID FSK"},\r
-       {"grid",                                        CmdGrid,                                                1, "grid x y, overlay grid on graph window, use zero value to turn off either"},\r
+       {"grid",                                        CmdGrid,                                                1, "<x> <y> -- overlay grid on graph window, use zero value to turn off either"},\r
        {"hexsamples",          CmdHexsamples,                  0, "<blocks> -- Dump big buffer as hex bytes"},\r
        {"hi14alist",                   CmdHi14alist,                           0, "List ISO 14443a history"},\r
        {"hi14areader",         CmdHi14areader,                 0, "Act like an ISO14443 Type A reader"},\r
Impressum, Datenschutz