Skip to content

Commit 2fba367

Browse files
committed
remeha: settings: device path -> host and port
1 parent 30cdbc6 commit 2fba367

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hard.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lon=0.0
1010
#skymax_mode_change_script=/some/scripts/ups.sh %mode%
1111
#influxdb_url=http://192.168.0.3:8086
1212
#lcdproc=192.168.0.4:13666
13-
#remeha_device=/sys/bus/usb/devices/1-1.3.4:1.0/tty
13+
#remeha_device=192.168.0.6:4001
1414
#remeha_state_change_script=/some/scripts/remeha.sh %state%
1515

1616
[postgres]

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ async fn main() {
327327

328328
//remeha async task
329329
match get_config_string("remeha_device", None) {
330-
Some(path) => {
330+
Some(host) => {
331331
let worker_cancel_flag = cancel_flag.clone();
332332
let mut remeha = remeha::Remeha {
333333
display_name: "<i><black>remeha:</>".to_string(),
334-
device_path: path,
334+
device_host_port: host,
335335
poll_ok: 0,
336336
poll_errors: 0,
337337
influxdb_url: influxdb_url.clone(),

src/remeha.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ impl RemehaState {
417417

418418
pub struct Remeha {
419419
pub display_name: String,
420-
pub device_path: String,
420+
pub device_host_port: String,
421421
pub poll_ok: u64,
422422
pub poll_errors: u64,
423423
pub influxdb_url: Option<String>,

0 commit comments

Comments
 (0)