I missed a ::write, stupid jenkins

This commit is contained in:
Jake Dahl 2018-10-16 17:49:15 -06:00 committed by Kabir Mohammed
parent edf82d3937
commit cbae32a50a
2 changed files with 9 additions and 3 deletions

View File

@ -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()

View File

@ -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).