Skip to content

Commit 8641b2f

Browse files
authored
Merge pull request #36 from wose/master
makes set_slave_address public
2 parents 666e769 + 060f4d2 commit 8641b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl LinuxI2CDevice {
116116
/// (it is done internally). Calling this method is only
117117
/// necessary if you need to change the slave device and you do
118118
/// not want to create a new device.
119-
fn set_slave_address(&mut self, slave_address: u16) -> Result<(), LinuxI2CError> {
119+
pub fn set_slave_address(&mut self, slave_address: u16) -> Result<(), LinuxI2CError> {
120120
try!(ffi::i2c_set_slave_address(self.as_raw_fd(), slave_address));
121121
self.slave_address = slave_address;
122122
Ok(())

0 commit comments

Comments
 (0)