POSIX: Added sleep command

The baro was not fully initialized when the sensors module tried to
open it. Added a sleep command and a sleep 2 to rc.S so the baro
is initialized by the time the sensors module tried to read it.

Fixed other noisy errors

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-06-11 17:28:46 -07:00
parent 18304a2a0d
commit 83bcb95999
7 changed files with 26 additions and 7 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ I2C::I2C(const char *name,
_address(address),
_fd(-1)
{
warnx("I2C::I2C name = %s devname = %s", name, devname);
//warnx("I2C::I2C name = %s devname = %s", name, devname);
// fill in _device_id fields for a I2C device
_device_id.devid_s.bus_type = DeviceBusType_I2C;
_device_id.devid_s.bus = bus;