Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotak committed Jul 16, 2018
1 parent 05ead04 commit d155c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UbxGpsI2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void UbxGpsI2C::internalCb(int event) {

bool UbxGpsI2C::sendUbxAck(UbxClassId class_id, uint8_t id, const char * data, uint16_t tx_len) {
if (sendUbx(class_id, id, data, tx_len, 2)) {
_semaphore.wait_until(DEFAULT_TIMEOUT);
_semaphore.wait(DEFAULT_TIMEOUT);

if (_got_ubx_data) {
if (_rx_buf[2] == UBX_ACK && _rx_buf[3] == ACK_ACK && _rx_buf[6] == class_id && _rx_buf[7] == id) {
Expand Down

0 comments on commit d155c98

Please sign in to comment.