Skip to content

Commit

Permalink
Fix else error on timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: rbudai <[email protected]>
  • Loading branch information
rbudai98 committed Jun 14, 2024
1 parent bb4fb36 commit 0075a60
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ elseif (${DEVICE_FOUND_ADIS16465_1} OR
set(DEVICE_PATH adis1646x)
add_compile_definitions(ADIS1646X)

elseif (${DEVICE_FOUND_ADIS16565_2} OR
${DEVICE_FOUND_ADIS16565_3} OR
${DEVICE_FOUND_ADIS16575_2} OR
elseif (${DEVICE_FOUND_ADIS16575_2} OR
${DEVICE_FOUND_ADIS16575_3} OR
${DEVICE_FOUND_ADIS16576_2} OR
${DEVICE_FOUND_ADIS16576_3} OR
Expand Down
2 changes: 0 additions & 2 deletions src/iio_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,6 @@ static ssize_t demux_sample(
/* timestamp channel is not available, have to update buff_write_idx for last read channel */
#ifdef ADIS_HAS_DELTA_BURST
if (iio_channel_get_index(chn) == CHAN_DELTA_VEL_Z) buff_write_idx++;
#else
if (iio_channel_get_index(chn) == CHAN_ACCEL_Z) buff_write_idx++;
#endif
}
} else {
Expand Down
4 changes: 1 addition & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ elseif (${DEVICE_FOUND_ADIS16465_1} OR
set(DEVICE_PATH adis1646x)
add_compile_definitions(ADIS1646X)

elseif (${DEVICE_FOUND_ADIS16565_2} OR
${DEVICE_FOUND_ADIS16565_3} OR
${DEVICE_FOUND_ADIS16575_2} OR
elseif (${DEVICE_FOUND_ADIS16575_2} OR
${DEVICE_FOUND_ADIS16575_3} OR
${DEVICE_FOUND_ADIS16576_2} OR
${DEVICE_FOUND_ADIS16576_3} OR
Expand Down

0 comments on commit 0075a60

Please sign in to comment.