]> sigrok.org Git - pulseview.git/commitdiff
Minor update related to the libsigrok analog format changes.
authorUwe Hermann <redacted>
Tue, 20 Oct 2015 22:33:46 +0000 (00:33 +0200)
committerUwe Hermann <redacted>
Tue, 20 Oct 2015 22:33:46 +0000 (00:33 +0200)
This is only a temporary fix, and assumes only SR_DF_ANALOG packets with
float data ever arrive. Support for other types will be needed later.

pv/session.cpp

index 45c4e98790843dc67bef475a6be0594b265017b4..4130096830a80944c7ab8d27a583289ab3cfefb8 100644 (file)
@@ -521,7 +521,7 @@ void Session::feed_in_analog(shared_ptr<Analog> analog)
        const vector<shared_ptr<Channel>> channels = analog->channels();
        const unsigned int channel_count = channels.size();
        const size_t sample_count = analog->num_samples() / channel_count;
-       const float *data = analog->data_pointer();
+       const float *data = static_cast<const float *>(analog->data_pointer());
        bool sweep_beginning = false;
 
        for (auto channel : channels)