sonar: fix sonar scan

remove utf8 characters from:
  * examples/c++/mcp9808.cxx
  * examples/c++/tmp006.cxx
  * src/bmp280/bmp280.c
  * src/max30100/max30100.c

add -j8 options to make command in scripts/sonar-scan.sh

Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
This commit is contained in:
Nicolas Oliver
2017-07-26 08:38:25 -07:00
committed by Mihai Tudor Panu
parent 24b6cbcc85
commit 7bee29ba62
6 changed files with 10 additions and 9 deletions

View File

@ -42,7 +42,7 @@ int main()
{
float t;
case 1:
std::cout << "Temp: " << temp->getTemp() << "° " << (temp->isCelsius()? "Celsius" : "Fahrenheit")<< std::endl;
std::cout << "Temp: " << temp->getTemp() << "* " << (temp->isCelsius()? "Celsius" : "Fahrenheit")<< std::endl;
break;
case 2:
cout << "shutdown sensor (sleep mode)" << endl;

View File

@ -58,8 +58,8 @@ int main(int argc, char **argv)
// update and print available values every second
while (run)
{
// Print out temperature value in °C
std::cout << "Temperature: " << mySensor->getTemperature(true) << " °C"
// Print out temperature value in *C
std::cout << "Temperature: " << mySensor->getTemperature(true) << " *C"
<< std::endl;
sleep(1);