Skip to content

Commit 71424e9

Browse files
committed
refactor
1 parent 9ca58ba commit 71424e9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

mrbgems/picoruby-shell/mrbgem.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

mrbgems/picoruby-shell/mrblib/shell.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def run_shell
213213
puts
214214
when ["reboot"]
215215
begin
216+
puts "\nrebooting..."
216217
Watchdog.reboot 1000
217218
rescue NameError
218219
buffer.clear

mrbgems/picoruby-shell/shell_executables/wifi_connect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@ if config["wifi"]["watchdog"]
121121
puts "Watchdog disabled"
122122
end
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])
126126
puts "Time set to #{Time.now}"

0 commit comments

Comments
 (0)