Skip to content

Commit

Permalink
Fix toybrick (#501)
Browse files Browse the repository at this point in the history
remove useless line, causing segfault

Signed-off-by: Virgil Litan <virgil.litan@analog.com>
  • Loading branch information
VLitanADI authored Jan 15, 2021
1 parent a65e411 commit 08928ce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sdk/src/connections/target/addi9036_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,6 @@ aditof::Status Addi9036Sensor::getFrame(uint16_t *buffer) {
buffer[i + 1] = ((buffer[i + 1] & 0x00FF) << 4) |
((buffer[i + 1]) & 0xF000) >> 12;
}
memcpy(buffer + (width * height), pdata[0], buf[0].bytesused);
#else
// Not Packed and type == "depth_ir"
uint16_t *ptr_depth = (uint16_t *)pdata[0];
Expand Down

0 comments on commit 08928ce

Please sign in to comment.