Permalink
Browse files

Fixes for old libbiosig version

  • Loading branch information...
cbrnr committed Jan 8, 2018
1 parent 63a795f commit 4979a19f6832f77e402c74884ac6bf6d5365e856
Showing with 5 additions and 1 deletion.
  1. +1 −1 src/base/signal_channel.cpp
  2. +4 −0 src/file_handling_impl/biosig_reader.cpp
@@ -23,7 +23,7 @@ SignalChannel::SignalChannel(unsigned ch, const HDRTYPE* hdr) :
{
#if (BIOSIG_VERSION < 10400)
char tmpstr[30];
PhysDim(hdr->CHANNEL[ch].PhysDimCode), tmpstr);
PhysDim(hdr->CHANNEL[ch].PhysDimCode, tmpstr);
#else
const char *tmpstr = PhysDim3(hdr->CHANNEL[ch].PhysDimCode);
#endif
@@ -157,7 +157,11 @@ QString BioSigReader::loadFixedHeader(const QString& file_name)
return "non-exist";
}
#if (BIOSIG_VERSION < 10400)
if (biosig_header_ == NULL || serror(biosig_header_))
#else
if (biosig_header_ == NULL || serror2(biosig_header_))
#endif
{
sclose (biosig_header_);
destructHDR(biosig_header_);

0 comments on commit 4979a19

Please sign in to comment.