debug_tools/decode.rb in surface_master-0.2.0 vs debug_tools/decode.rb in surface_master-0.2.1
- old
+ new
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
fname = ARGV.shift
-raise "Must specify filename." unless fname
+fail "Must specify filename." unless fname
outname = fname.gsub(/\.raw/, ".txt")
bytes = File.read(fname).bytes.map { |x| "0x%02X" % x }
output = [bytes.shift(5).join(", ")] # SysEx vendor header...