From a43d8a6f069f8619d10158b7e6dffd0fa52a2baf Mon Sep 17 00:00:00 2001 From: Rodrigo Alfonso Date: Sat, 3 Feb 2024 04:56:05 -0300 Subject: [PATCH] FIX: After clock inversion, a small wait is needed before sending new commands to make it more stable --- lib/LinkRawWireless.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/LinkRawWireless.hpp b/lib/LinkRawWireless.hpp index 33907e5..7f6c7a8 100644 --- a/lib/LinkRawWireless.hpp +++ b/lib/LinkRawWireless.hpp @@ -654,6 +654,8 @@ class LinkRawWireless { LRWLOG("setting SPI to 2Mbps"); linkSPI->activate(LinkSPI::Mode::MASTER_2MBPS); + wait(LINK_RAW_WIRELESS_TRANSFER_WAIT); + remoteCommand.success = true; remoteCommand.commandId = commandId;