Fix 1.0 API difference + 0.7 Warning
parent
b8800b0d05
commit
8a39e8ca9e
|
@ -279,7 +279,7 @@ function rtosc_argument(msg::OscMsg, idx::Int)
|
||||||
return reinterpret(Int32, i)
|
return reinterpret(Int32, i)
|
||||||
end
|
end
|
||||||
elseif typeChar in "m"
|
elseif typeChar in "m"
|
||||||
m = Array{UInt8}(4)
|
m = Array{UInt8}(undef, 4)
|
||||||
m[1] = msg.data[@incfp(arg_pos)]
|
m[1] = msg.data[@incfp(arg_pos)]
|
||||||
m[2] = msg.data[@incfp(arg_pos)]
|
m[2] = msg.data[@incfp(arg_pos)]
|
||||||
m[3] = msg.data[@incfp(arg_pos)]
|
m[3] = msg.data[@incfp(arg_pos)]
|
||||||
|
@ -332,6 +332,9 @@ function showField(io::IO, msg::OscMsg, arg_id)
|
||||||
if typeof(value) <: Array
|
if typeof(value) <: Array
|
||||||
value = value'
|
value = value'
|
||||||
end
|
end
|
||||||
|
if(value == nothing)
|
||||||
|
value = "nothing"
|
||||||
|
end
|
||||||
@printf(io, " #%2d %c:", arg_id, typeChar)
|
@printf(io, " #%2d %c:", arg_id, typeChar)
|
||||||
println(dict[typeChar]," - ", value)
|
println(dict[typeChar]," - ", value)
|
||||||
end
|
end
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#License along with this library.
|
#License along with this library.
|
||||||
|
|
||||||
|
|
||||||
using Base.Test
|
using Test
|
||||||
using OSC
|
using OSC
|
||||||
|
|
||||||
test_type = length(ARGS) == 1 ? ARGS[1] : "ALL"
|
test_type = length(ARGS) == 1 ? ARGS[1] : "ALL"
|
||||||
|
|
Loading…
Reference in New Issue