AP_OpticalFlow: minor format fix to Pixart driver
This commit is contained in:
parent
e629845f00
commit
18c3eba829
@ -86,7 +86,6 @@ AP_OpticalFlow_Pixart::AP_OpticalFlow_Pixart(const char *devname, OpticalFlow &_
|
||||
_dev = std::move(hal.spi->get_device(devname));
|
||||
}
|
||||
|
||||
|
||||
// detect the device
|
||||
AP_OpticalFlow_Pixart *AP_OpticalFlow_Pixart::detect(const char *devname, OpticalFlow &_frontend)
|
||||
{
|
||||
@ -171,7 +170,6 @@ bool AP_OpticalFlow_Pixart::setup_sensor(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// write an 8 bit register
|
||||
void AP_OpticalFlow_Pixart::reg_write(uint8_t reg, uint8_t value)
|
||||
{
|
||||
@ -211,7 +209,6 @@ int16_t AP_OpticalFlow_Pixart::reg_read16s(uint8_t reg)
|
||||
return (int16_t)reg_read16u(reg);
|
||||
}
|
||||
|
||||
|
||||
void AP_OpticalFlow_Pixart::srom_download(void)
|
||||
{
|
||||
reg_write(0x39, 0x02);
|
||||
@ -254,7 +251,6 @@ void AP_OpticalFlow_Pixart::load_configuration(const RegData *init_data, uint16_
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void AP_OpticalFlow_Pixart::motion_burst(void)
|
||||
{
|
||||
uint8_t *b = (uint8_t *)&burst;
|
||||
|
Loading…
Reference in New Issue
Block a user