Skip to content

Commit

Permalink
instantiate IOBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Nov 12, 2024
1 parent 78b63f7 commit 17efccc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/i2c.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function i2c_write_byte_data(self::Pi, handle, reg, byte_val)
# I p3 4
## extension ##
# I byte_val
extents = IOBuffer
extents = IOBuffer()
write(extents, byte_val)
return _u2i(_pigpio_command_ext(
self.sl, _PI_CMD_I2CWB, handle, reg, 4, extents))
Expand Down Expand Up @@ -178,7 +178,7 @@ function i2c_write_word_data(self::Pi, handle, reg, word_val)
# I p3 4
## extension ##
# I word_val
extents = IOBuffer
extents = IOBuffer()
write(extents, word_val)
return _u2i(_pigpio_command_ext(
self.sl, _PI_CMD_I2CWW, handle, reg, 4, extents))
Expand Down Expand Up @@ -257,7 +257,7 @@ function i2c_process_call(self, handle, reg, word_val)
# I p3 4
## extension ##
# I word_val
extents = IOBuffer
extents = IOBuffer()
write(extents, word_val)
return _u2i(_pigpio_command_ext(
self.sl, _PI_CMD_I2CPC, handle, reg, 4, extents))
Expand Down

0 comments on commit 17efccc

Please sign in to comment.