Skip to content
Snippets Groups Projects
Commit cbae32a5 authored by Jake Dahl's avatar Jake Dahl Committed by Kabir Mohammed
Browse files

I missed a ::write, stupid jenkins

parent edf82d39
No related branches found
No related tags found
No related merge requests found
......@@ -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).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment