mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
reset Graphstart variable when <data clear>
This commit is contained in:
parent
6e3eff356b
commit
9b90250434
5 changed files with 5 additions and 4 deletions
|
@ -43,8 +43,9 @@ size_t ClearGraph(bool redraw) {
|
||||||
size_t gtl = GraphTraceLen;
|
size_t gtl = GraphTraceLen;
|
||||||
memset(GraphBuffer, 0x00, GraphTraceLen);
|
memset(GraphBuffer, 0x00, GraphTraceLen);
|
||||||
GraphTraceLen = 0;
|
GraphTraceLen = 0;
|
||||||
|
GraphStart = 0;
|
||||||
GraphStop = 0;
|
GraphStop = 0;
|
||||||
// showDemod = false;
|
|
||||||
DemodBufferLen = 0;
|
DemodBufferLen = 0;
|
||||||
if (redraw)
|
if (redraw)
|
||||||
RepaintGraphWindow();
|
RepaintGraphWindow();
|
||||||
|
|
|
@ -35,7 +35,7 @@ void ExitGraphics(void);
|
||||||
extern double CursorScaleFactor;
|
extern double CursorScaleFactor;
|
||||||
extern char CursorScaleFactorUnit[11];
|
extern char CursorScaleFactorUnit[11];
|
||||||
extern double PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, GridOffset;
|
extern double PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, GridOffset;
|
||||||
extern uint32_t CursorCPos, CursorDPos, GraphStop;
|
extern uint32_t CursorCPos, CursorDPos, GraphStart, GraphStop;
|
||||||
extern int CommandFinished;
|
extern int CommandFinished;
|
||||||
extern int offline;
|
extern int offline;
|
||||||
extern bool GridLocked;
|
extern bool GridLocked;
|
||||||
|
|
|
@ -766,7 +766,7 @@ void Plot::paintEvent(QPaintEvent *event) {
|
||||||
painter.drawText(20, infoRect.bottom() - 3, str);
|
painter.drawText(20, infoRect.bottom() - 3, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
Plot::Plot(QWidget *parent) : QWidget(parent), GraphStart(0), GraphPixelsPerPoint(1) {
|
Plot::Plot(QWidget *parent) : QWidget(parent), GraphPixelsPerPoint(1) {
|
||||||
//Need to set this, otherwise we don't receive keypress events
|
//Need to set this, otherwise we don't receive keypress events
|
||||||
setFocusPolicy(Qt::StrongFocus);
|
setFocusPolicy(Qt::StrongFocus);
|
||||||
resize(400, 200);
|
resize(400, 200);
|
||||||
|
|
|
@ -32,7 +32,6 @@ class ProxWidget;
|
||||||
class Plot: public QWidget {
|
class Plot: public QWidget {
|
||||||
private:
|
private:
|
||||||
QWidget *master;
|
QWidget *master;
|
||||||
uint32_t GraphStart; // Starting point/offset for the left side of the graph
|
|
||||||
double GraphPixelsPerPoint; // How many visual pixels are between each sample point (x axis)
|
double GraphPixelsPerPoint; // How many visual pixels are between each sample point (x axis)
|
||||||
uint32_t CursorAPos;
|
uint32_t CursorAPos;
|
||||||
uint32_t CursorBPos;
|
uint32_t CursorBPos;
|
||||||
|
|
|
@ -45,6 +45,7 @@ double CursorScaleFactor = 1;
|
||||||
char CursorScaleFactorUnit[11] = {0};
|
char CursorScaleFactorUnit[11] = {0};
|
||||||
double PlotGridX = 0, PlotGridY = 0, PlotGridXdefault = 64, PlotGridYdefault = 64;
|
double PlotGridX = 0, PlotGridY = 0, PlotGridXdefault = 64, PlotGridYdefault = 64;
|
||||||
uint32_t CursorCPos = 0, CursorDPos = 0, GraphStop = 0;
|
uint32_t CursorCPos = 0, CursorDPos = 0, GraphStop = 0;
|
||||||
|
uint32_t GraphStart = 0; // Starting point/offset for the left side of the graph
|
||||||
double GraphPixelsPerPoint = 1.f; // How many visual pixels are between each sample point (x axis)
|
double GraphPixelsPerPoint = 1.f; // How many visual pixels are between each sample point (x axis)
|
||||||
static bool flushAfterWrite = 0;
|
static bool flushAfterWrite = 0;
|
||||||
double GridOffset = 0;
|
double GridOffset = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue