Code clean up and handling FIFO errors

Revision:
57:c6275de14bc5
Parent:
55:215da406282b
diff -r 38b36e947602 -r c6275de14bc5 common/platform.h
--- a/common/platform.h	Mon Feb 24 08:49:25 2020 +0000
+++ b/common/platform.h	Fri Mar 06 05:32:12 2020 +0000
@@ -83,7 +83,7 @@
             .sckPin     = PLATFORM_SPI_SCK,         \
             .csPin      = PLATFORM_SPI_CS,          \
             .wakeupPin  = PLATFORM_SPI_WAKEUP,       \
-            .maxSpeedHz = 2000000,                  \
+            .maxSpeedHz = 1000000,                  \
         },                                          \
         .gpio = {                                   \
             .resetPin     = PLATFORM_GPIO_RESET,    \