From f98cc75552e42c5028808cc2e277a7849acc8bdf Mon Sep 17 00:00:00 2001 From: Maxwell Pray Date: Tue, 11 Jul 2023 12:47:57 -0700 Subject: [PATCH] Cast 0 as byte before calling Serial.write. --- notebook_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook_adapter.cpp b/notebook_adapter.cpp index d593958..2dc8f1c 100644 --- a/notebook_adapter.cpp +++ b/notebook_adapter.cpp @@ -26,7 +26,7 @@ namespace NotebookAdapter { case COMMAND_QUERY: if (command_mode) { Serial.print(COMMAND_QUERY_PAYLOAD); - Serial.write(0); + Serial.write((byte)0); } break;