From: Uwe Hermann Date: Thu, 20 Aug 2015 17:36:12 +0000 (+0200) Subject: Pass unitsize per sample chunk. X-Git-Tag: libsigrokdecode-0.4.0~92 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=cda2d36cfeed3f921252ffa95377529d6bdc074b;hp=cda2d36cfeed3f921252ffa95377529d6bdc074b Pass unitsize per sample chunk. Don't pass unitsize to srd_inst_channel_set_all(), have that only set the channel map. Instead, srd_session_send() now has a parameter for the unitsize which is passed with every new chunk to be decoded. This is in preparation to fix issues with devices or files which have a unitsize != 1 and where the "guessed" unitsize based on the number of channels is not correct. This also allows for (potential) future changes where every chunk can indeed have a different unitsize. This fixes (parts of) bug #352. ---