Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
These were needed after an update to clippy.
  • Loading branch information
bmerry committed Dec 1, 2024
1 parent cca1b93 commit 7f7bee4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ This program collects data from a Sunsynk/Deye router and makes it available
for use. It can collect the data in two ways (referred to as "frontends"):

1. By running on a router sitting between an inverter with an
Inteless WiFi dongle and the remote server. In this mode it is a completely
passive observer, so it cannot interface with the inverter's operation. This is
called the `pcap` frontend.
Inteless WiFi dongle and the remote server. In this mode it is a completely
passive observer, so it cannot interface with the inverter's operation. This is
called the `pcap` frontend.

2. By connecting a serial cable to the inverter, it is possible to query it
interactively. This requires additional hardware, but allows the query
interval be set (and made much faster than the 5 minute interval the dongle
uses), and the dongle can be removed for better privacy and security. In this
mode commands are sent to your inverter, but they only read (not write) the
registers, so it is still pretty safe. This is the `modbus` frontend. See
[this guide](https://kellerza.github.io/sunsynk/guide/deployment-options) for
information on how to wire the RS485 cable. There are reports that the RS232
connection works too.
interactively. This requires additional hardware, but allows the query
interval be set (and made much faster than the 5 minute interval the dongle
uses), and the dongle can be removed for better privacy and security. In this
mode commands are sent to your inverter, but they only read (not write) the
registers, so it is still pretty safe. This is the `modbus` frontend. See
[this guide](https://kellerza.github.io/sunsynk/guide/deployment-options) for
information on how to wire the RS485 cable. There are reports that the RS232
connection works too.

There are also currently two "backends", which determine what to do with the
data.
Expand Down
2 changes: 1 addition & 1 deletion src/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub struct Field<'a> {
pub sum_of: &'a [usize],
}

impl<'a> Field<'a> {
impl Field<'_> {
pub fn from_u16s(&self, parts: impl IntoIterator<Item = u16>) -> f64 {
let mut raw: i64 = 0;
let mut shift: u32 = 0;
Expand Down

0 comments on commit 7f7bee4

Please sign in to comment.