Skip to content

Commit

Permalink
device_m1000: Restore a previous commit that was accidentally deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbogdan committed Sep 10, 2015
1 parent c41e58e commit 85eb113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device_m1000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void M1000_Device::handle_in_transfer(libusb_transfer* t) {
for (unsigned p=0; p<m_packets_per_transfer; p++) {
uint8_t* buf = (uint8_t*) (t->buffer + p*in_packet_size);

for (unsigned i=(m_in_sampleno==0)?2:0; i<chunk_size; i++) {
for (unsigned i=0; i<chunk_size; i++) {
if (strncmp(this->m_fw_version, "2.", 2) == 0) {
m_signals[0][0].put_sample( (buf[i*8+0] << 8 | buf[i*8+1]) / 65535.0 * 5.0);
m_signals[0][1].put_sample((((buf[i*8+2] << 8 | buf[i*8+3]) / 65535.0 * 0.4 ) - 0.195)*1.25);
Expand Down

0 comments on commit 85eb113

Please sign in to comment.