Skip to content

Commit

Permalink
remove print statement (#37)
Browse files Browse the repository at this point in the history
reconfig_bus() is now mutex protected
  • Loading branch information
CleoQc authored Mar 7, 2018
1 parent 060ba51 commit 837eb0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Python/di_sensors/easy_inertial_measurement_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, port="AD1", use_mutex=False):

ifMutexAcquire(self.use_mutex)
try:
print("INSTANTIATING ON PORT {} OR BUS {} WITH MUTEX {}".format(port, bus, use_mutex))
# print("INSTANTIATING ON PORT {} OR BUS {} WITH MUTEX {}".format(port, bus, use_mutex))
super(self.__class__, self).__init__(bus = bus)
# on GPG3 we ask that the IMU be at the back of the robot, facing outward
# We do not support the IMU on GPG2 but leaving the if statement in case
Expand All @@ -69,7 +69,9 @@ def __init__(self, port="AD1", use_mutex=False):
ifMutexRelease(self.use_mutex)

def reconfig_bus(self):
ifMutexAcquire(self.use_mutex)
self.BNO055.i2c_bus.reconfig_bus()
ifMutexRelease(self.use_mutex)

def calibrate(self):
print("calibrating")
Expand Down

0 comments on commit 837eb0f

Please sign in to comment.