matrix-io / matrix-creator-hal

Hardware Abstraction Layer for MATRIX Creator & MATRIX Voice
https://matrix-io.github.io/matrix-documentation/matrix-hal/overview/
GNU General Public License v3.0
70 stars 50 forks source link

humidity and temp values always 0 #3

Closed lpotter closed 8 years ago

lpotter commented 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.

eljuguetero commented 8 years ago

Hi Ipotter,

we're fixing this bug, it is a software issue.

Best regards

eljuguetero commented 8 years ago

Hi @lpotter

Fixed.

  1. update the HAL
  2. sudo apt-get update && sudo apt-get upgrade
  3. sudo reboot