提交 9717562e authored 作者: Serhij S's avatar Serhij S

0.1.27

上级 7c8129b1
[package]
name = "roboplc"
version = "0.1.26"
version = "0.1.27"
edition = "2021"
authors = ["Serhij S. <div@altertech.com>"]
license = "Apache-2.0"
......@@ -27,7 +27,7 @@ oneshot = { version = "0.1.6", default-features = false, features = ["std"] }
parking_lot = "0.12.1"
pin-project = "1.1.5"
rmodbus = { version = "0.9.4", optional = true }
roboplc-derive = { version = "0.1.8" }
roboplc-derive = { version = "0.1.9" }
serde = { version = "1.0.197", features = ["derive", "rc"] }
serial = "0.4.0"
sysinfo = "0.30.6"
......
......@@ -48,7 +48,7 @@ pub enum Scheduling {
Batch,
DeadLine,
#[default]
Normal,
Other,
}
impl From<Scheduling> for libc::c_int {
......@@ -59,7 +59,7 @@ impl From<Scheduling> for libc::c_int {
Scheduling::Idle => libc::SCHED_IDLE,
Scheduling::Batch => libc::SCHED_BATCH,
Scheduling::DeadLine => libc::SCHED_DEADLINE,
Scheduling::Normal => libc::SCHED_NORMAL,
Scheduling::Other => libc::SCHED_NORMAL,
}
}
}
......@@ -72,7 +72,7 @@ impl From<libc::c_int> for Scheduling {
libc::SCHED_IDLE => Scheduling::Idle,
libc::SCHED_BATCH => Scheduling::Batch,
libc::SCHED_DEADLINE => Scheduling::DeadLine,
_ => Scheduling::Normal,
_ => Scheduling::Other,
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论