Fixed maxsonarez sensor returning distance in inches insted of cm

This commit is contained in:
UPSquared 2018-06-06 17:05:51 +03:00 committed by Stefan Andritoiu
parent 551a86ee8c
commit e73afa43b6

View File

@ -65,6 +65,5 @@ int MAXSONAREZ::inches()
int MAXSONAREZ::getDistance()
{
// TODO: call static conversion first.
return inches();
return (inches() * 2.54);
}