mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 02:30:44 +00:00
Yet more CMS50 fixes4
This commit is contained in:
parent
8a75a7c3e6
commit
17a3635711
@ -41,6 +41,8 @@ CMS50F37Loader::CMS50F37Loader()
|
||||
m_abort = false;
|
||||
m_streaming = false;
|
||||
m_importing = false;
|
||||
started_reading = false;
|
||||
|
||||
imp_callbacks = 0;
|
||||
|
||||
m_vendorID = 0x10c4;
|
||||
@ -460,7 +462,7 @@ void CMS50F37Loader::processBytes(QByteArray bytes)
|
||||
buf[i] = (buf[i] & 0x7f) | (msb & 0x01 ? 0x80 : 0);
|
||||
}
|
||||
|
||||
quint16 pi = buf[4] | buf[5] << 8;
|
||||
quint16 pi = *(quint16*)(&buf[4]);
|
||||
|
||||
pulse = buf[3];
|
||||
quint8 spo2 = buf[2];
|
||||
|
Loading…
Reference in New Issue
Block a user