PRS1 AutoSV Import Failing on amd64 builds
Open Source CPAP Research and Review Software
Status: Beta
Brought to you by:
jedimark
The windows 32-bit build of SleepyHead correctly imports by AutoSV data from SD card. A 64-bit build from source on linux does not - it only decodes the machine model info, and nothing else (including dates of use, and all daily/overview/prescription/etc data).
I get the same behavior in the pre-packaged .deb for amd64, but the i386 .deb runs fine (running on the same 64-bit linux system, but of course linked against 32-bit libraries).
If I had to guess it is probably a data type issue somewhere in prs1_loader.cpp. Suggestions for debugging are welcome. I also don't mind emailing somebody a tarball of my SD card.
See patch which fixes this issue.
This patch appears to have been applied to the current source code already. SleepyHead v0.9.8-1 (testing) Build Date: Sep 6 2015 13:48:05 Revision: db99d0d (master branch)
prs1_loader.cpp
int ncodes = sizeof(Codes) / sizeof(ChannelID);
EventList *Code[0x20] = {nullptr};
I reckon this old ticket can be closed now.