From 34f5b40919aefabc3caca9728ab66d3e9faf44fe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 28 Oct 2019 07:35:54 +1100 Subject: [PATCH] AP_IOMCU: use crc32_small() in AP_IOMCU the slower speed is not noticible and this saves 1k ram --- libraries/AP_IOMCU/AP_IOMCU.cpp | 4 ++-- libraries/AP_IOMCU/fw_uploader.cpp | 4 ++-- libraries/AP_IOMCU/iofirmware/iofirmware.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_IOMCU/AP_IOMCU.cpp b/libraries/AP_IOMCU/AP_IOMCU.cpp index cf5b965364..a1ea0a41fa 100644 --- a/libraries/AP_IOMCU/AP_IOMCU.cpp +++ b/libraries/AP_IOMCU/AP_IOMCU.cpp @@ -763,12 +763,12 @@ bool AP_IOMCU::check_crc(void) hal.console->printf("failed to find %s\n", fw_name); return false; } - uint32_t crc = crc_crc32(0, fw, fw_size); + uint32_t crc = crc32_small(0, fw, fw_size); // pad CRC to max size for (uint32_t i=0; i