mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 20:20:44 +00:00
Fix daily crash with day restructure change
This commit is contained in:
parent
672b111339
commit
f229eefd22
@ -460,7 +460,7 @@ void CMS50F37Loader::processBytes(QByteArray bytes)
|
|||||||
buf[i] = (buf[i] & 0x7f) | (msb & 0x01 ? 0x80 : 0);
|
buf[i] = (buf[i] & 0x7f) | (msb & 0x01 ? 0x80 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
quint16 pi = *(quint16*)(&buf[4]);
|
quint16 pi = buffer.data()[idx+4] | buffer.data()[idx+5] << 8;
|
||||||
|
|
||||||
pulse = buf[3];
|
pulse = buf[3];
|
||||||
quint8 spo2 = buf[2];
|
quint8 spo2 = buf[2];
|
||||||
|
@ -1470,7 +1470,8 @@ void Daily::Load(QDate date)
|
|||||||
quint32 chans = schema::SPAN | schema::FLAG | schema::MINOR_FLAG;
|
quint32 chans = schema::SPAN | schema::FLAG | schema::MINOR_FLAG;
|
||||||
if (p_profile->general->showUnknownFlags()) chans |= schema::UNKNOWN;
|
if (p_profile->general->showUnknownFlags()) chans |= schema::UNKNOWN;
|
||||||
|
|
||||||
QList<ChannelID> available = day->getSortedMachineChannels(chans);
|
QList<ChannelID> available;
|
||||||
|
if (day) available.append(day->getSortedMachineChannels(chans));
|
||||||
|
|
||||||
for (int i=0; i < available.size(); ++i) {
|
for (int i=0; i < available.size(); ++i) {
|
||||||
ChannelID code = available.at(i);
|
ChannelID code = available.at(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user