From a032ec62c24f6f9d2538fad3ec0c422ea510a74d Mon Sep 17 00:00:00 2001 From: Nico Stute Date: Sun, 22 Mar 2020 14:06:44 +0100 Subject: [PATCH] Update uvw.c --- shared/comps/uvw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/comps/uvw.c b/shared/comps/uvw.c index 554c5d6a..1fd7175f 100644 --- a/shared/comps/uvw.c +++ b/shared/comps/uvw.c @@ -73,7 +73,7 @@ static void rt_func(float period, void *ctx_ptr, hal_pin_inst_t *pin_ptr) { else{ switch((int) PIN(mode)){ case 0: - if(t[rpos] < 0.0){ + if(t[rpos] >= 0.0){ PIN(state) = 3.0; PIN(error) = 0.0; PIN(pos) = mod((float)t[rpos] / 6.0 * 2.0 * M_PI);