undid changes + put ftdi & serial behind features

- serial_comm and ftdi_comm features added
- received/recieved typos reverted for inclusion in another PR
- fuel_level change reverted for inclusion in another PR
- DeviceError's 0 field made private again
This commit is contained in:
Nicholas Orlowsky 2025-03-20 13:56:26 -04:00
parent 11e87eafaf
commit 1769d2a84b
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
7 changed files with 112 additions and 93 deletions

View file

@ -8,7 +8,11 @@ edition = "2021"
[dependencies]
env_logger = "0.10"
ftdi = "0.1.3"
log = "0.4.8"
thiserror = "1.0.15"
serialport="=4.6.1"
ftdi = { version = "0.1.3", optional = true }
serialport= { version = "=4.6.1", optional = true }
[features]
ftdi_comm = [ "dep:ftdi" ]
serialport_comm = [ "dep:serialport" ]