Skip to content

Commit

Permalink
Rename 'update_dbm'
Browse files Browse the repository at this point in the history
  • Loading branch information
lukipuki committed Mar 30, 2024
1 parent f5fad9a commit b62dd21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/message_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl MessageHandler {
status.position = Some(position.clone())
}
if let Some(rssi_snr) = log_message.rssi_snr.as_ref() {
status.update_dbm(rssi_snr.clone());
status.update_rssi_snr(rssi_snr.clone());
}
if let Some((_, battery)) = log_message.voltage_battery.as_ref() {
status.update_battery(*battery);
Expand Down
2 changes: 1 addition & 1 deletion src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl MeshtasticRocStatus {
self.last_update = Some(Local::now().into());
}

pub fn update_dbm(&mut self, rssi_snr: RssiSnr) {
pub fn update_rssi_snr(&mut self, rssi_snr: RssiSnr) {
self.rssi_snr = Some(rssi_snr);
self.last_update = Some(Local::now().into());
}
Expand Down

0 comments on commit b62dd21

Please sign in to comment.