AP_HAL_Empty: follow coding style

- Add some spaces
 - Use pragma once
 - Remove ; from method implementation
 - Remove unneeded return
This commit is contained in:
Lucas De Marchi 2015-12-14 10:55:32 -02:00 committed by Andrew Tridgell
parent b3a751a199
commit e825eb12f5

View File

@ -12,13 +12,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __AP_HAL_EMPTY_OPTICALFLOW_H__
#define __AP_HAL_EMPTY_OPTICALFLOW_H__
#pragma once
class Empty::OpticalFlow : public AP_HAL::OpticalFlow {
public:
void init(AP_HAL::OpticalFlow::Gyro_Cb) {return;};
bool read(Data_Frame& frame) {return false;};
void init(AP_HAL::OpticalFlow::Gyro_Cb) { }
bool read(Data_Frame& frame) { return false; }
};
#endif