Skip to content

Commit

Permalink
Merge pull request #7 from AliMoal/main
Browse files Browse the repository at this point in the history
Fix Write Response When PRN is enabled
  • Loading branch information
lulf authored Mar 18, 2024
2 parents 06db6d3 + 3df7a4e commit cbda29c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions firmware/app/src/ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ impl NrfDfuService {
NrfDfuServiceEvent::PacketWrite(data) => {
let request = DfuRequest::Write { data: &data[..] };
return Some(self.process(target, dfu, connection, request, |conn, response| {
if conn.notify_packet {
self.packet_notify(&conn.connection, &Vec::from_slice(response).unwrap())?;
if conn.notify_control {
self.control_notify(&conn.connection, &Vec::from_slice(response).unwrap())?;
}
// if conn.notify_packet {
// self.packet_notify(&conn.connection, &Vec::from_slice(response).unwrap())?;
// }
Ok(())
}));
}
Expand Down

0 comments on commit cbda29c

Please sign in to comment.