getting a warning when executing regarding abs()

This commit is contained in:
Erik 2018-08-08 21:11:55 +02:00 committed by GitHub
parent 03aefe619d
commit 23f657dbbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ function micmeter(metersize)
println("Press Ctrl-C to quit")
while true
block = read(mic, 512)
blockmax = maximum(abs(block)) # find the maximum value in the block
blockmax = maximum(abs.(block)) # find the maximum value in the block
signalmax = max(signalmax, blockmax) # keep the maximum value ever
print("\r") # reset the cursor to the beginning of the line
printmeter(metersize, blockmax, signalmax)