Skip to content

Commit 6865209

Browse files
committed
small fix
1 parent 0c6bbf3 commit 6865209

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

REQUIRE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
julia 0.6
2+
ColorTypes
3+
FixedPointNumbers

src/ioctl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function ioctl(fd::Cint, request::Integer, arg::Integer)
2525
return ret
2626
end
2727
function ioctl(fd::Cint, request::Integer, arg)
28-
ret = ccall(:ioctl, Cint, (Cint, Culong, Ptr{Nothing}...), fd, request, arg)
28+
ret = ccall(:ioctl, Cint, (Cint, Culong, Ptr{Cvoid}...), fd, request, arg)
2929
if ret < 0
3030
throw(SystemError("ioctl error"))
3131
end

test/sensors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ using SenseHat
33

44
@test -40 <= temperature() <= 60
55
@test 0 <= humidity() <= 100
6-
@test 950 <= pressure() <= 1100
6+
@test 900 <= pressure() <= 1200

0 commit comments

Comments
 (0)