Closed lpotter closed 8 years ago
I tried getting humidity and temperature values thus:
hal::WishboneBus* bus = new hal::WishboneBus(); bus->SpiInit(); hal::HumiditySensor humidity_sensor; humidity_sensor.Setup(bus);
hal::HumidityData humidity_data; humidity_sensor.Read(&humidity_data);
std::cout << "humidity = " << humidity_data.humidity << "\t"; std::cout << "temperature = " << humidity_data.temperature << std::endl;
both humidity and temperature are always 0.
Hi Ipotter,
we're fixing this bug, it is a software issue.
Best regards
Hi @lpotter
Fixed.
sudo apt-get update && sudo apt-get upgrade
sudo reboot
I tried getting humidity and temperature values thus:
hal::WishboneBus* bus = new hal::WishboneBus(); bus->SpiInit(); hal::HumiditySensor humidity_sensor; humidity_sensor.Setup(bus);
hal::HumidityData humidity_data; humidity_sensor.Read(&humidity_data);
std::cout << "humidity = " << humidity_data.humidity << "\t"; std::cout << "temperature = " << humidity_data.temperature << std::endl;
both humidity and temperature are always 0.