diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-18 11:18:04 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-18 11:18:04 +0200 |
commit | 3f4b1c7284304d8c4ae2e4dd17359a2b4c1c573c (patch) | |
tree | 41410bbbdd7fc33ce63ac9873356846eb525dbe7 /robot/hypervisor.c | |
parent | 837acf351ae96e2392efde175a61fd33e0774961 (diff) |
[WIP] serial communication (broken w/ segfault)
Diffstat (limited to 'robot/hypervisor.c')
-rw-r--r-- | robot/hypervisor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/robot/hypervisor.c b/robot/hypervisor.c index c558de8..c08a24c 100644 --- a/robot/hypervisor.c +++ b/robot/hypervisor.c @@ -7,7 +7,7 @@ void w2_hypervisor_main() { #ifdef W2_SIM - siminfo("cycle start\n"); + if (DBG_ENABLE_CYCLEINFO) siminfo("cycle start\n"); #endif time_reset(); @@ -24,7 +24,7 @@ void w2_hypervisor_main() { if (mode_time > W2_MAX_MODULE_CYCLE_MS) w2_errcatch_throw(W2_E_WARN_CYCLE_EXPIRED); #ifdef W2_SIM - siminfo("cycle end\n"); + if (DBG_ENABLE_CYCLEINFO) siminfo("cycle end\n"); usleep(100e3); #endif } |