Skip to content

Commit

Permalink
fix rw problem
Browse files Browse the repository at this point in the history
  • Loading branch information
XdoctorwhoZ committed Dec 17, 2024
1 parent 1972029 commit f06bd1e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/attribute_tester/device/bool_ro_wo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub async fn mount(mut instance: Instance) -> Result<(), Error> {
//
let att_boolean_rw = class
.create_attribute("boolean_rw")
.with_wo()
.with_rw()
.with_info(r#"read write command"#)
.finish_as_boolean()
.await?;
Expand Down
2 changes: 1 addition & 1 deletion src/attribute_tester/device/enum_ro_wo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub async fn mount(mut instance: Instance) -> Result<(), Error> {
//
let att_enum_rw = class
.create_attribute("enum_rw")
.with_wo()
.with_rw()
.with_info(r#"read write command"#)
.finish_as_enum(choices.clone())
.await?;
Expand Down
2 changes: 1 addition & 1 deletion src/attribute_tester/device/json_ro_wo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub async fn mount(mut instance: Instance) -> Result<(), Error> {
//
let att_json_rw = class
.create_attribute("json_rw")
.with_wo()
.with_rw()
.with_info(r#"read write command"#)
.finish_as_json()
.await?;
Expand Down
2 changes: 1 addition & 1 deletion src/attribute_tester/device/number_ro_wo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub async fn mount(mut instance: Instance) -> Result<(), Error> {
//
let att_number_rw = class
.create_attribute("number_rw")
.with_wo()
.with_rw()
.with_info(r#"read write command"#)
.finish_as_number()
.await?;
Expand Down
2 changes: 1 addition & 1 deletion src/attribute_tester/device/si_ro_wo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub async fn mount(mut instance: Instance) -> Result<(), Error> {
//
let att_si_rw = class
.create_attribute("si_rw")
.with_wo()
.with_rw()
.with_info(r#"read write command"#)
.finish_as_si("test", 0, 100, 2)
.await?;
Expand Down
2 changes: 1 addition & 1 deletion src/attribute_tester/device/string_ro_wo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub async fn mount(mut instance: Instance) -> Result<(), Error> {
//
let att_string_rw = class
.create_attribute("string_rw")
.with_wo()
.with_rw()
.with_info(r#"read write command"#)
.finish_as_string()
.await?;
Expand Down

0 comments on commit f06bd1e

Please sign in to comment.