mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
PRS1 ASV code 0 fix
This commit is contained in:
parent
20e8bf7704
commit
4dfa38bc41
@ -680,6 +680,8 @@ bool PRS1Loader::Parse002ASV(Session *session,unsigned char *buffer,int size,qin
|
||||
}
|
||||
//QDateTime d=QDateTime::fromMSecsSinceEpoch(t);
|
||||
//qDebug()<< d.toString("yyyy-MM-dd HH:mm:ss") << ": " << hex << pos+15 << " " << hex << int(code) ;
|
||||
if (code==0) {
|
||||
} else
|
||||
if (code!=0x12) {
|
||||
delta=buffer[pos];
|
||||
//duration=buffer[pos+1];
|
||||
@ -774,7 +776,7 @@ bool PRS1Loader::Parse002ASV(Session *session,unsigned char *buffer,int size,qin
|
||||
|
||||
data[2]-=data[9]; // Pressure Support
|
||||
session->AddEvent(new Event(t,CPAP_PS,&data[2],1)); //correct
|
||||
qDebug()<< d.toString("yyyy-MM-dd HH:mm:ss") << hex << session->session() << pos+15 << hex << int(code) << ": " << hex << int(data[0]) << " " << int(data[1]) << " " << int(data[2]) << " " << int(data[3]) << " " << int(data[4]) << " " << int(data[5])<< " " << int(data[6]) << " " << int(data[7]) << " " << int(data[8]) << " " << int(data[9]);
|
||||
//qDebug()<< d.toString("yyyy-MM-dd HH:mm:ss") << hex << session->session() << pos+15 << hex << int(code) << ": " << hex << int(data[0]) << " " << int(data[1]) << " " << int(data[2]) << " " << int(data[3]) << " " << int(data[4]) << " " << int(data[5])<< " " << int(data[6]) << " " << int(data[7]) << " " << int(data[8]) << " " << int(data[9]);
|
||||
break;
|
||||
case 0x03: // BIPAP Pressure
|
||||
data[0]=buffer[pos++];
|
||||
|
@ -91,7 +91,7 @@ void Oximetry::on_RefreshPortsButton_clicked()
|
||||
int z=0;
|
||||
QString firstport;
|
||||
bool current_found=false;
|
||||
#if (Q_WS_WIN32)
|
||||
#ifdef Q_WS_WIN32
|
||||
#define qesPORTNAME portName
|
||||
#else
|
||||
#define qesPORTNAME physName
|
||||
|
Loading…
Reference in New Issue
Block a user