mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
CMS50i PI test6
This commit is contained in:
parent
d8bf63f613
commit
b88e9351dc
@ -600,7 +600,7 @@ void SummaryChart::paint(QPainter &painter, gGraph &w, const QRegion ®ion)
|
||||
|
||||
if (d != m_values.end()) {
|
||||
day = m_days[zd];
|
||||
bool summary_only = day->summaryOnly();
|
||||
bool summary_only = day && day->summaryOnly();
|
||||
|
||||
|
||||
if (!m_hours.contains(zd)) {
|
||||
|
@ -460,7 +460,7 @@ void CMS50F37Loader::processBytes(QByteArray bytes)
|
||||
|
||||
quint8 msb = buf[1];
|
||||
for (int i = 2; i < len-1; i++, msb >>= 1) {
|
||||
buf[i] = (buf[i] & 0x7f) | (msb & 0x01) ? 0x80 : 0;
|
||||
buf[i] = (buf[i] & 0x7f) | ((msb & 0x01) ? 0x80 : 0);
|
||||
}
|
||||
|
||||
quint16 pi = buf[4] | buf[5] << 8;
|
||||
|
Loading…
Reference in New Issue
Block a user