Ardupilot2/libraries/AP_InertialSensor/AP_InertialSensor_UserInteract_Stream.h
Lucas De Marchi d19c5035b6 Global: Rename printf format attribute
As commented in 8218140 ("AP_Common: add scanf format macro"), "FORMAT"
was a bad name for this macro since there's also the scanf. Rename to
FMT_PRINTF to follow the scanf name.
2015-12-01 07:22:12 +11:00

26 lines
659 B
C++

#ifndef __AP_INERTIAL_SENSOR_USER_INTERACT_STREAM_H__
#define __AP_INERTIAL_SENSOR_USER_INTERACT_STREAM_H__
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_InertialSensor_UserInteract.h"
/**
* AP_InertialSensor_UserInteract, implemented in terms of a BetterStream.
*/
class AP_InertialSensor_UserInteractStream :
public AP_InertialSensor_UserInteract {
public:
AP_InertialSensor_UserInteractStream(AP_HAL::BetterStream *s) :
_s(s) {}
bool blocking_read();
void printf(const char*, ...) FMT_PRINTF(2, 3);
private:
AP_HAL::BetterStream *_s;
};
#endif // __AP_INERTIAL_SENSOR_USER_INTERACT_STREAM_H__