mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 03:00:43 +00:00
Switch of excess serial debugging
This commit is contained in:
parent
19ae2c7605
commit
0344257b7f
@ -22,7 +22,7 @@
|
|||||||
#include "Graphs/gYAxis.h"
|
#include "Graphs/gYAxis.h"
|
||||||
#include "Graphs/gLineOverlay.h"
|
#include "Graphs/gLineOverlay.h"
|
||||||
|
|
||||||
#define SERIAL_DEBUG 1
|
// #define SERIAL_DEBUG 1
|
||||||
|
|
||||||
|
|
||||||
extern QLabel * qstatus2;
|
extern QLabel * qstatus2;
|
||||||
@ -729,8 +729,9 @@ void CMS50Serial::ReadyRead()
|
|||||||
|
|
||||||
pulse=(unsigned char)buffer.at(i+1) & 0x7f;
|
pulse=(unsigned char)buffer.at(i+1) & 0x7f;
|
||||||
spo2=(unsigned char)buffer.at(i+2) & 0x7f;
|
spo2=(unsigned char)buffer.at(i+2) & 0x7f;
|
||||||
|
#if SERIAL_DEBUG
|
||||||
qDebug() << "Record: " << pulse << spo2;
|
qDebug() << "Record: " << pulse << spo2;
|
||||||
|
#endif
|
||||||
data.push_back(buffer.at(i));
|
data.push_back(buffer.at(i));
|
||||||
data.push_back(buffer.at(i+1));
|
data.push_back(buffer.at(i+1));
|
||||||
data.push_back(buffer.at(i+2));
|
data.push_back(buffer.at(i+2));
|
||||||
|
Loading…
Reference in New Issue
Block a user