@@ -182,7 +182,7 @@ impl<R: Read, W: Write> Daemon for DaemonServer<R, W> {
182
182
}
183
183
}
184
184
185
- fn color ( & mut self ) -> Result < Rgb , String > {
185
+ fn color ( & mut self , board : usize ) -> Result < Rgb , String > {
186
186
let path = "/sys/class/leds/system76_acpi::kbd_backlight/color" ;
187
187
match fs:: read_to_string ( & path) {
188
188
Ok ( string) => {
@@ -196,7 +196,7 @@ impl<R: Read, W: Write> Daemon for DaemonServer<R, W> {
196
196
}
197
197
}
198
198
199
- fn set_color ( & mut self , color : Rgb ) -> Result < ( ) , String > {
199
+ fn set_color ( & mut self , board : usize , color : Rgb ) -> Result < ( ) , String > {
200
200
let path = "/sys/class/leds/system76_acpi::kbd_backlight/color" ;
201
201
match fs:: write ( path, & color. to_string ( ) ) {
202
202
Ok ( ( ) ) => Ok ( ( ) ) ,
@@ -205,7 +205,7 @@ impl<R: Read, W: Write> Daemon for DaemonServer<R, W> {
205
205
206
206
}
207
207
208
- fn max_brightness ( & mut self ) -> Result < i32 , String > {
208
+ fn max_brightness ( & mut self , board : usize ) -> Result < i32 , String > {
209
209
let path = "/sys/class/leds/system76_acpi::kbd_backlight/max_brightness" ;
210
210
match fs:: read_to_string ( & path) {
211
211
Ok ( string) => {
@@ -223,7 +223,7 @@ impl<R: Read, W: Write> Daemon for DaemonServer<R, W> {
223
223
}
224
224
}
225
225
226
- fn brightness ( & mut self ) -> Result < i32 , String > {
226
+ fn brightness ( & mut self , board : usize ) -> Result < i32 , String > {
227
227
let path = "/sys/class/leds/system76_acpi::kbd_backlight/brightness" ;
228
228
match fs:: read_to_string ( & path) {
229
229
Ok ( string) => {
@@ -241,7 +241,7 @@ impl<R: Read, W: Write> Daemon for DaemonServer<R, W> {
241
241
}
242
242
}
243
243
244
- fn set_brightness ( & mut self , brightness : i32 ) -> Result < ( ) , String > {
244
+ fn set_brightness ( & mut self , board : usize , brightness : i32 ) -> Result < ( ) , String > {
245
245
let path = "/sys/class/leds/system76_acpi::kbd_backlight/brightness" ;
246
246
match fs:: write ( path, & format ! ( "{}" , brightness) ) {
247
247
Ok ( ( ) ) => Ok ( ( ) ) ,
0 commit comments