mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 10:27:34 +00:00
I2C Error fixes
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#include <sta/i2c.hpp>
|
||||
|
||||
namespace sta {
|
||||
I2cDevice::I2cDevice(uint16_t address_7bit, Mutex* mutex, bool master) {
|
||||
I2cDevice::I2cDevice(uint16_t address_7bit, Mutex* mutex, bool master, bool blocking) {
|
||||
this->address = address_7bit << 1;
|
||||
this->mutex = mutex;
|
||||
this->master = master;
|
||||
this->blocking = blocking;
|
||||
}
|
||||
|
||||
void I2cDevice::acquire() {
|
||||
@@ -18,4 +19,4 @@ namespace sta {
|
||||
mutex->release();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user