mirror of
https://github.com/italicsjenga/mppt-modbus.git
synced 2024-12-23 16:51:30 +11:00
unused features/allows
This commit is contained in:
parent
ecb11e90ae
commit
f1d6a02dd2
|
@ -1,8 +1,4 @@
|
||||||
#![allow(incomplete_features)]
|
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![feature(adt_const_params)]
|
|
||||||
#![feature(generic_arg_infer)]
|
|
||||||
#![feature(generic_const_exprs)]
|
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
fmt::{self, Debug, Display},
|
fmt::{self, Debug, Display},
|
||||||
|
@ -415,7 +411,7 @@ fn main() {
|
||||||
println!("Writing {} to offset {}", val, offset);
|
println!("Writing {} to offset {}", val, offset);
|
||||||
modbus
|
modbus
|
||||||
.write_register(EEPROM_BEGIN as u16 + offset, val)
|
.write_register(EEPROM_BEGIN as u16 + offset, val)
|
||||||
.expect("could not set value");
|
.expect("could not set va lue");
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
println!("No modbus device connected");
|
println!("No modbus device connected");
|
||||||
|
|
Loading…
Reference in a new issue