Skip to content

Commit b48be39

Browse files
extent write
1 parent 17efccc commit b48be39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PiGPIO.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module PiGPIO
33

44
export Pi
55

6-
import Base: run
6+
import Base: run, write
77
using Sockets
88

99
include("constants.jl")

src/spiSerial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function spi_open(self::Pi, spi_channel, baud, spi_flags=0)
8989
## extension ##
9090
# I spi_flags
9191
extents=IOBuffer()
92-
write(extents, spi_flags::Cint)
92+
write(extents, Cint(spi_flags))
9393
return _u2i(_pigpio_command_ext(
9494
self.sl, _PI_CMD_SPIO, spi_channel, baud, 4, extents))
9595
end

0 commit comments

Comments
 (0)