提交 5b9fb60e authored 作者: Serhij S's avatar Serhij S

removed SystemConfig from example

上级 5df32608
...@@ -45,10 +45,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { ...@@ -45,10 +45,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
if !roboplc::is_production() { if !roboplc::is_production() {
roboplc::thread_rt::set_simulated(); roboplc::thread_rt::set_simulated();
} }
let _sys = roboplc::thread_rt::SystemConfig::new()
.set("kernel/sched_rt_runtime_us", -1)
.apply()
.expect("Unable to set system config");
roboplc::thread_rt::prealloc_heap(10_000_000)?; roboplc::thread_rt::prealloc_heap(10_000_000)?;
let mut controller = Controller::<Message, Variables>::new(); let mut controller = Controller::<Message, Variables>::new();
let (pipe, reader) = Pipe::new("/path/to/subprogram"); let (pipe, reader) = Pipe::new("/path/to/subprogram");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论