Skip to content

Bug in QtouchClass::available? #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
maxgerhardt opened this issue Jul 4, 2021 · 0 comments
Open

Bug in QtouchClass::available? #8

maxgerhardt opened this issue Jul 4, 2021 · 0 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@maxgerhardt
Copy link

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?

@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants