Skip to content

Commit 5dc9f08

Browse files
cast bb_bits to Cuint if necessary
1 parent b48be39 commit 5dc9f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spiSerial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ function bb_serial_read_open(self, user_gpio, baud, bb_bits=8)
383383
## extension ##
384384
# I bb_bits
385385
extents = IOBuffer()
386-
write(extents, bb_bits::Cuint)
386+
write(extents, Cuint(bb_bits))
387387
return _u2i(_pigpio_command_ext(
388388
self.sl, _PI_CMD_SLRO, user_gpio, baud, 4, extents))
389389
end

0 commit comments

Comments
 (0)