Skip to content

Bug in QtouchClass::available? #8

@maxgerhardt

Description

@maxgerhardt

int QtouchClass::available()
{
// check if a measure is done
if ((p_selfcap_measure_data->measurement_done_touch == 1u))
{
p_selfcap_measure_data->measurement_done_touch == 0u;
return 1;
}
return 0;
}

.pio\libdeps\mkrwifi1010\Arduino_MCHPTouch\src\Arduino_MCHPTouch.cpp: In member function 'int QtouchClass::available()':
.pio\libdeps\mkrwifi1010\Arduino_MCHPTouch\src\Arduino_MCHPTouch.cpp:49:52: warning: value computed is not used [-Wunused-value]
     p_selfcap_measure_data->measurement_done_touch == 0u;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

Did you mean to do an assignment or a comparison here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions