loader: build_module_importation invalidates the mmodule on errors
[nit.git] / contrib / physical_interface_for_mpd_on_rpi / physical_interface_for_mpd_on_rpi.nit
index 34294ae..335444a 100644 (file)
@@ -34,24 +34,24 @@ class PhysicalInterface
        fun server: String do return "localhost"
        fun port: Int do return 6600
 
-       var but_play: Switch
-       var but_playlist_a: Switch
+       var but_play: Switch is noinit
+       var but_playlist_a: Switch is noinit
 
-       var vol: RotaryEncoder
+       var vol: RotaryEncoder is noinit
        var vol_step = 2
 
-       var lcd: HD44780
+       var lcd: HD44780 is noinit
 
-       var lcd_backlight: RPiPin
+       var lcd_backlight: RPiPin is noinit
        var lcd_backlight_delay = 1000
 
-       var buzzer: Buzzer
+       var buzzer: Buzzer is noinit
 
        init
        do
                # commandline options for privileges drop
                var opts = new OptionContext
-               var opt_ug = new OptionDropPrivileges
+               var opt_ug = new OptionUserAndGroup.for_dropping_privileges
                #opt_ug.mandatory = true
                opts.add_option(opt_ug)