- memcpy(&sample, data_in + offset, ctx->unitsize);
- for (p = 0; p < ctx->num_enabled_probes; p++) {
- c = (sample & ((uint64_t) 1 << p)) ? '1' : '0';
+ sample = data_in + offset;
+ for (p = 0; p < ctx->num_enabled_channels; p++) {
+ c = (sample[p / 8] & ((uint8_t) 1 << (p % 8))) ? '1' : '0';