Eliminate some warnings
This commit is contained in:
parent
ad952adb76
commit
b99f42ace6
@ -182,7 +182,7 @@ namespace NxWM
|
|||||||
bool m_stop; /**< True: We have been asked to stop the calibration */
|
bool m_stop; /**< True: We have been asked to stop the calibration */
|
||||||
bool m_touched; /**< True: The screen is touched */
|
bool m_touched; /**< True: The screen is touched */
|
||||||
uint8_t m_touchId; /**< The ID of the touch */
|
uint8_t m_touchId; /**< The ID of the touch */
|
||||||
#if CONFIG_NXWM_CALIBRATION_AVERAGE
|
#ifdef CONFIG_NXWM_CALIBRATION_AVERAGE
|
||||||
uint8_t m_nsamples; /**< Number of samples collected so far at this position */
|
uint8_t m_nsamples; /**< Number of samples collected so far at this position */
|
||||||
struct nxgl_point_s m_sampleData[CONFIG_NXWM_CALIBRATION_NSAMPLES];
|
struct nxgl_point_s m_sampleData[CONFIG_NXWM_CALIBRATION_NSAMPLES];
|
||||||
#endif
|
#endif
|
||||||
@ -278,7 +278,7 @@ namespace NxWM
|
|||||||
* @return True: Average data is available; False: Need to collect more samples
|
* @return True: Average data is available; False: Need to collect more samples
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_NXWM_CALIBRATION_AVERAGE
|
#ifdef CONFIG_NXWM_CALIBRATION_AVERAGE
|
||||||
bool averageSamples(struct nxgl_point_s &average);
|
bool averageSamples(struct nxgl_point_s &average);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -690,7 +690,7 @@ FAR void *CCalibration::calibration(FAR void *arg)
|
|||||||
* @return True: Average data is available; False: Need to collect more samples
|
* @return True: Average data is available; False: Need to collect more samples
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_NXWM_CALIBRATION_AVERAGE
|
#ifdef CONFIG_NXWM_CALIBRATION_AVERAGE
|
||||||
bool CCalibration::averageSamples(struct nxgl_point_s &average)
|
bool CCalibration::averageSamples(struct nxgl_point_s &average)
|
||||||
{
|
{
|
||||||
// Have we started collecting sample data? */
|
// Have we started collecting sample data? */
|
||||||
@ -801,7 +801,7 @@ void CCalibration::stateMachine(void)
|
|||||||
{
|
{
|
||||||
gvdbg("Old m_calphase=%d\n", m_calphase);
|
gvdbg("Old m_calphase=%d\n", m_calphase);
|
||||||
|
|
||||||
#if CONFIG_NXWM_CALIBRATION_AVERAGE
|
#ifdef CONFIG_NXWM_CALIBRATION_AVERAGE
|
||||||
// Are we collecting samples?
|
// Are we collecting samples?
|
||||||
|
|
||||||
struct nxgl_point_s average;
|
struct nxgl_point_s average;
|
||||||
@ -891,7 +891,7 @@ void CCalibration::stateMachine(void)
|
|||||||
// A touch has been received while in the CALPHASE_UPPER_LEFT state.
|
// A touch has been received while in the CALPHASE_UPPER_LEFT state.
|
||||||
// Save the touch data and set up the next calibration display
|
// Save the touch data and set up the next calibration display
|
||||||
|
|
||||||
#if CONFIG_NXWM_CALIBRATION_AVERAGE
|
#ifdef CONFIG_NXWM_CALIBRATION_AVERAGE
|
||||||
m_calibData[CALIB_UPPER_LEFT_INDEX].x = average.x;
|
m_calibData[CALIB_UPPER_LEFT_INDEX].x = average.x;
|
||||||
m_calibData[CALIB_UPPER_LEFT_INDEX].y = average.y;
|
m_calibData[CALIB_UPPER_LEFT_INDEX].y = average.y;
|
||||||
#else
|
#else
|
||||||
@ -928,7 +928,7 @@ void CCalibration::stateMachine(void)
|
|||||||
// A touch has been received while in the CALPHASE_UPPER_RIGHT state.
|
// A touch has been received while in the CALPHASE_UPPER_RIGHT state.
|
||||||
// Save the touch data and set up the next calibration display
|
// Save the touch data and set up the next calibration display
|
||||||
|
|
||||||
#if CONFIG_NXWM_CALIBRATION_AVERAGE
|
#ifdef CONFIG_NXWM_CALIBRATION_AVERAGE
|
||||||
m_calibData[CALIB_UPPER_RIGHT_INDEX].x = average.x;
|
m_calibData[CALIB_UPPER_RIGHT_INDEX].x = average.x;
|
||||||
m_calibData[CALIB_UPPER_RIGHT_INDEX].y = average.y;
|
m_calibData[CALIB_UPPER_RIGHT_INDEX].y = average.y;
|
||||||
#else
|
#else
|
||||||
@ -965,7 +965,7 @@ void CCalibration::stateMachine(void)
|
|||||||
// A touch has been received while in the CALPHASE_LOWER_RIGHT state.
|
// A touch has been received while in the CALPHASE_LOWER_RIGHT state.
|
||||||
// Save the touch data and set up the next calibration display
|
// Save the touch data and set up the next calibration display
|
||||||
|
|
||||||
#if CONFIG_NXWM_CALIBRATION_AVERAGE
|
#ifdef CONFIG_NXWM_CALIBRATION_AVERAGE
|
||||||
m_calibData[CALIB_LOWER_RIGHT_INDEX].x = average.x;
|
m_calibData[CALIB_LOWER_RIGHT_INDEX].x = average.x;
|
||||||
m_calibData[CALIB_LOWER_RIGHT_INDEX].y = average.y;
|
m_calibData[CALIB_LOWER_RIGHT_INDEX].y = average.y;
|
||||||
#else
|
#else
|
||||||
@ -1002,7 +1002,7 @@ void CCalibration::stateMachine(void)
|
|||||||
// A touch has been received while in the CALPHASE_LOWER_LEFT state.
|
// A touch has been received while in the CALPHASE_LOWER_LEFT state.
|
||||||
// Save the touch data and set up the next calibration display
|
// Save the touch data and set up the next calibration display
|
||||||
|
|
||||||
#if CONFIG_NXWM_CALIBRATION_AVERAGE
|
#ifdef CONFIG_NXWM_CALIBRATION_AVERAGE
|
||||||
m_calibData[CALIB_LOWER_LEFT_INDEX].x = average.x;
|
m_calibData[CALIB_LOWER_LEFT_INDEX].x = average.x;
|
||||||
m_calibData[CALIB_LOWER_LEFT_INDEX].y = average.y;
|
m_calibData[CALIB_LOWER_LEFT_INDEX].y = average.y;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user