From f974d92661e650b8fb998089564e9575fe8190e5 Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Thu, 9 Jun 2022 00:39:48 +0100 Subject: [PATCH] Minor fix to read back the right amout of I2C data from the interface mcu. (#159) A bit inconsequential as the data read back is not being used, but the interface firmware is meant to send back the same number of bytes that was written to it. --- source/MicroBitUSBFlashManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/MicroBitUSBFlashManager.cpp b/source/MicroBitUSBFlashManager.cpp index 99c4a2c0..ebfc5747 100644 --- a/source/MicroBitUSBFlashManager.cpp +++ b/source/MicroBitUSBFlashManager.cpp @@ -162,7 +162,7 @@ int MicroBitUSBFlashManager::setConfiguration(MicroBitUSBFlashConfig config, boo // Write out each of the parameters in turn. transact(fname, 12); - transact(fsize, 2); + transact(fsize, 5); transact(fvisible, 2); if (persist)