Skip to content

Commit

Permalink
Fix broken random color
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Webber committed Jun 15, 2013
1 parent afe31d9 commit e234a43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions midi_saddle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
puts "Connected to Sphero"

def random_color
color = Sphero::COLORS.sample
puts "Picked Color: #{color}"
color = Sphero::COLORS.keys.sample
puts "\n\tPicked Color: #{color}"
color
end

Expand Down
4 changes: 2 additions & 2 deletions sphero_saddle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
puts "Connected to Sphero"

def random_color
color = Sphero::COLORS.sample
puts "Picked Color: #{color}"
color = Sphero::COLORS.keys.sample
puts "\n\tPicked Color: #{color}"
color
end

Expand Down

0 comments on commit e234a43

Please sign in to comment.