Skip to content

Commit

Permalink
Update src/lib/drivers/device/nuttx/SPI.cpp
Browse files Browse the repository at this point in the history
Co-Authored-By: dakejahl <37091262+dakejahl@users.noreply.github.com>
  • Loading branch information
bkueng and dakejahl committed Jan 30, 2019
1 parent b99ddda commit b7dce1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/drivers/device/nuttx/SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ SPI::transferhword(uint16_t *send, uint16_t *recv, unsigned len)
}

case LOCK_NONE: {
if (_is_locked) {
if (_is_locked & (1 << _device_id.devid_s.bus)) {
// Someone is using the bus
perf_count(_isr_deferred);
return PX4_ERROR;
Expand Down

0 comments on commit b7dce1c

Please sign in to comment.