Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
taks committed Dec 11, 2024
1 parent 487177f commit 5433b8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/server/ble_characteristic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl BLECharacteristic {

pub fn notify(&self) {
for it in &self.subscribed_list {
if let Err(err) = self.send_value(self.value.value(), it.0, it.1) {
if let Err(err) = self.send_value(self.value.as_slice(), it.0, it.1) {
::log::warn!("notify error({}): {:?}", it.0, err);
}
}
Expand Down Expand Up @@ -330,7 +330,7 @@ impl BLECharacteristic {
}

ble_npl_hw_enter_critical();
let value = characteristic.value.value();
let value = characteristic.value.as_slice();
let rc = os_mbuf_append(ctxt.om, value);
ble_npl_hw_exit_critical();
if rc == 0 {
Expand All @@ -355,7 +355,7 @@ impl BLECharacteristic {
if let Some(callback) = &mut (*characteristic.get()).on_write {
let desc = crate::utilities::ble_gap_conn_find(conn_handle).unwrap();
let mut arg = OnWriteArgs {
current_data: (*characteristic.get()).value.value(),
current_data: (*characteristic.get()).value.as_slice(),
recv_data: &buf,
desc: &desc,
reject: false,
Expand Down
4 changes: 2 additions & 2 deletions src/server/ble_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl BLEDescriptor {
}

ble_npl_hw_enter_critical();
let value = descriptor.value.value();
let value = descriptor.value.as_slice();
let rc = os_mbuf_append(ctxt.om, value);
ble_npl_hw_exit_critical();
if rc == 0 {
Expand All @@ -131,7 +131,7 @@ impl BLEDescriptor {
if let Some(callback) = &mut (*descriptor.get()).on_write {
let desc = crate::utilities::ble_gap_conn_find(conn_handle).unwrap();
let mut arg = OnWriteDescriptorArgs {
current_data: (*descriptor.get()).value.value(),
current_data: (*descriptor.get()).value.as_slice(),
recv_data: &buf,
desc: &desc,
reject: false,
Expand Down

0 comments on commit 5433b8d

Please sign in to comment.