plot: allow float values for grid

This commit is contained in:
Philippe Teuwen
2020-10-09 16:49:50 +02:00
parent 984b0d4803
commit 1e37d548c2
4 changed files with 9 additions and 9 deletions

View File

@@ -1448,7 +1448,7 @@ void setClockGrid(uint32_t clk, int offset) {
}
int CmdGrid(const char *Cmd) {
sscanf(Cmd, "%i %i", &PlotGridX, &PlotGridY);
sscanf(Cmd, "%lf %lf", &PlotGridX, &PlotGridY);
PlotGridXdefault = PlotGridX;
PlotGridYdefault = PlotGridY;
RepaintGraphWindow();