mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
Fix typos
This commit is contained in:
parent
90dc36418d
commit
4b9c348a1a
12
plot.c
12
plot.c
|
|
@ -321,7 +321,7 @@ smith_grid3(int x, int y)
|
||||||
if (d < 0)
|
if (d < 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (d == 0)
|
if (d == 0)
|
||||||
return 0;
|
return 1;
|
||||||
|
|
||||||
// shift circle center to right origin
|
// shift circle center to right origin
|
||||||
x -= P_RADIUS /2;
|
x -= P_RADIUS /2;
|
||||||
|
|
@ -1450,13 +1450,13 @@ draw_cell(int m, int n)
|
||||||
for (x = 0; x < w; x++) {
|
for (x = 0; x < w; x++) {
|
||||||
int n = 0;
|
int n = 0;
|
||||||
if (grid_mode & GRID_SMITH)
|
if (grid_mode & GRID_SMITH)
|
||||||
n+= smith_grid(x+x0off, y+y0);
|
n = smith_grid(x+x0off, y+y0);
|
||||||
else if (grid_mode & GRID_ADMIT)
|
else if (grid_mode & GRID_ADMIT)
|
||||||
n+= smith_grid3(x+x0off, y+y0);
|
n = smith_grid3(x+x0off, y+y0);
|
||||||
//n+= smith_grid2(x+x0, y+y0, 0.5);
|
//n = smith_grid2(x+x0, y+y0, 0.5);
|
||||||
else if (grid_mode & GRID_POLAR)
|
else if (grid_mode & GRID_POLAR)
|
||||||
n+= polar_grid(x+x0off, y+y0);
|
n = polar_grid(x+x0off, y+y0);
|
||||||
if (n>0)
|
if (n)
|
||||||
spi_buffer[y * w + x] = c;
|
spi_buffer[y * w + x] = c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue