From 0492b67b55fbaee767c7114025d2d1c5769c1c36 Mon Sep 17 00:00:00 2001 From: Gregg Date: Sat, 6 Jan 2024 21:08:32 -0600 Subject: [PATCH] Changed hapOut delay back to 1ms - works fine Identified issue with ESP32-S3 crashing when using PSRAM. Problem was not the code, but that the sketch was using pins that are needed to run the Octal PSRAM that comes with the Espressif S3 DevKit. --- src/HAP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HAP.cpp b/src/HAP.cpp index 5cfa6c0..e54c16d 100644 --- a/src/HAP.cpp +++ b/src/HAP.cpp @@ -1656,7 +1656,7 @@ void HapOut::HapStreamBuffer::flushBuffer(){ hapClient->client.write(encBuf,num+18); // transmit encrypted frame hapClient->a2cNonce.inc(); // increment nonce } - delay(50); + delay(1); } mbedtls_sha512_update_ret(ctx,(uint8_t *)buffer,num); // update hash