File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ MRuby::Gem::Specification.new('picoruby-shell') do |spec|
2020 end
2121
2222 executables_src = "#{ build_dir } /shell_executables.c.inc"
23+ if File . exist? ( executables_src )
24+ File . delete ( executables_src )
25+ end
2326 cc . include_paths << build_dir
2427
2528 executable_mrbfiles = Array . new
Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ def run_shell
213213 puts
214214 when [ "reboot" ]
215215 begin
216+ puts "\n rebooting..."
216217 Watchdog . reboot 1000
217218 rescue NameError
218219 buffer . clear
Original file line number Diff line number Diff line change @@ -121,6 +121,6 @@ if config["wifi"]["watchdog"]
121121 puts "Watchdog disabled"
122122end
123123
124- tv = Net::NTP.get
125- Machine.set_hwclock(tv [0], tv [1])
124+ ts = Net::NTP.get
125+ Machine.set_hwclock(ts [0], ts [1])
126126puts "Time set to #{Time.now}"
You can’t perform that action at this time.
0 commit comments