From 7ad4a8f5a78adb7e8af89cb901e9cef085776e4c Mon Sep 17 00:00:00 2001 From: ZeroByteOrg Date: Tue, 7 Jun 2022 20:24:50 -0500 Subject: [PATCH] Fixed compile error in MacOS --- src/engine/zsm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/zsm.cpp b/src/engine/zsm.cpp index 6f1e02df1..7768e6590 100644 --- a/src/engine/zsm.cpp +++ b/src/engine/zsm.cpp @@ -207,7 +207,7 @@ void ZSM::flushWrites() { void ZSM::flushTicks() { while (ticks > ZSM_DELAY_MAX) { logD("ZSM: write delay %d (max)",ZSM_DELAY_MAX); - w->writeC(ZSM_DELAY_CMD+ZSM_DELAY_MAX); + w->writeC((signed char)(ZSM_DELAY_CMD+ZSM_DELAY_MAX)); ticks -= ZSM_DELAY_MAX; } if (ticks>0) {