forked from Archive/PX4-Autopilot
I missed a ::write, stupid jenkins
This commit is contained in:
parent
edf82d3937
commit
cbae32a50a
|
@ -665,11 +665,17 @@ int PGA460::read_threshold_registers()
|
|||
}
|
||||
}
|
||||
|
||||
void PGA460::request_results()
|
||||
int PGA460::request_results()
|
||||
{
|
||||
uint8_t buf_tx[2] = {SYNCBYTE, UMR};
|
||||
::write(_fd, &buf_tx[0], sizeof(buf_tx));
|
||||
int ret = ::write(_fd, &buf_tx[0], sizeof(buf_tx));
|
||||
usleep(10000);
|
||||
|
||||
if(ret < 0) {
|
||||
return PX4_ERROR;
|
||||
}
|
||||
|
||||
return PX4_OK;
|
||||
}
|
||||
|
||||
void PGA460::run()
|
||||
|
|
|
@ -354,7 +354,7 @@ private:
|
|||
/**
|
||||
* @brief Measurement is read from UART RX buffer and published to the uORB distance sensor topic.
|
||||
*/
|
||||
void request_results();
|
||||
int request_results();
|
||||
|
||||
/**
|
||||
* @brief Checks the measurement from last report and sets the range distance mode (long range , short range).
|
||||
|
|
Loading…
Reference in New Issue