File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mrbgems/picoruby-shell/mrblib Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,17 @@ def self.setup_root_volume(device, label: "PicoRuby")
3737 def self . ensure_system_file ( path , code , crc = nil )
3838 10 . times do
3939 if File . file? ( path )
40- puts "Checking: #{ path } "
40+ print "Checking: #{ path } "
4141 File . open ( path , "r" ) do |f |
4242 actual_len = f . size
4343 actual_code = f . read if 0 < actual_len
4444 sleep_ms 100
4545 actual_crc = CRC . crc32 ( actual_code )
4646 if ( actual_len == code . length ) && ( crc . nil? || ( actual_crc == crc ) )
47- puts " OK (#{ code . length } bytes)"
47+ puts " ... OK (#{ code . length } bytes)"
4848 return
4949 else
50- puts " NG. Updating... (len: #{ code . size } <=>#{ actual_len } crc: #{ crc } <=>#{ actual_crc } )"
50+ puts " ... NG. Updating... (len: #{ code . size } <=>#{ actual_len } crc: #{ crc } <=>#{ actual_crc } )"
5151 end
5252 end
5353 File . unlink ( path )
You can’t perform that action at this time.
0 commit comments