Created
June 30, 2016 08:37
-
-
Save michalvalasek/62c33be18f7a639ac2d4ae88d80cff8f to your computer and use it in GitHub Desktop.
Weird crystal error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = File.new("buffer_i_gen_batt.txt") | |
6.times do | |
_ = f.gets | |
end | |
interval = f.gets | |
def real_val(raw_val) | |
(raw_val - 520) * 0.191 | |
end | |
def normalize | |
end | |
loop do | |
break unless n = f.gets | |
unless n.to_s == "" | |
puts n.to_s.to_i | |
end | |
# puts n.to_i | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
unless line == ""
instead ofif