diff --git a/src/main.rb b/src/main.rb index 3d5fc69..621900f 100755 --- a/src/main.rb +++ b/src/main.rb @@ -42,10 +42,11 @@ def initialize GarageState ] @state = 0 - @current_state = @states[@state].new(main:self) @last_state = @state @data = JSON.parse(File.read('src/data/data.json')) @is_sound_enable = @data['config']['sound'] + + @current_state = @states[@state].new(main:self) end def update