We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 666e769 + 060f4d2 commit 8641b2fCopy full SHA for 8641b2f
src/linux.rs
@@ -116,7 +116,7 @@ impl LinuxI2CDevice {
116
/// (it is done internally). Calling this method is only
117
/// necessary if you need to change the slave device and you do
118
/// not want to create a new device.
119
- fn set_slave_address(&mut self, slave_address: u16) -> Result<(), LinuxI2CError> {
+ pub fn set_slave_address(&mut self, slave_address: u16) -> Result<(), LinuxI2CError> {
120
try!(ffi::i2c_set_slave_address(self.as_raw_fd(), slave_address));
121
self.slave_address = slave_address;
122
Ok(())
0 commit comments