Skip to content

Commit

Permalink
Add units.
Browse files Browse the repository at this point in the history
  • Loading branch information
beauremus committed May 3, 2023
1 parent af1ae45 commit 939f5e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/drmem-drv-elgato/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,16 @@ impl driver::API for Instance {
.add_rw_device("on".parse::<Base>()?, None, max_history)
.await?;
let (d_brightness, s_brightness, _) = core
.add_rw_device("brightness".parse::<Base>()?, None, max_history)
.add_rw_device(
"brightness".parse::<Base>()?,
Some("%"),
max_history,
)
.await?;
let (d_temperature, s_temperature, _) = core
.add_rw_device(
"temperature".parse::<Base>()?,
None,
Some("K"),
max_history,
)
.await?;
Expand Down

0 comments on commit 939f5e3

Please sign in to comment.