From 3836117a5fd1aa375917963000a0302dc335e5df Mon Sep 17 00:00:00 2001 From: DiSlord Date: Sat, 27 Jun 2020 15:07:31 +0300 Subject: [PATCH] restore val type --- sa_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa_cmd.c b/sa_cmd.c index f95027c..2130e29 100644 --- a/sa_cmd.c +++ b/sa_cmd.c @@ -440,7 +440,7 @@ void sweep_remote(void) break; float val = perform(false, i, f, false); streamPut(shell_stream, 'x'); - uint16_t v = val*2 + 256; + int v = val*2 + 256; streamPut(shell_stream, (uint8_t)(v & 0xFF)); streamPut(shell_stream, (uint8_t)((v>>8) & 0xFF)); df+=error;if (df >=step) {f++;df -= step;}