From 320efe05a5ee6eee9157968ee987230188afdbf8 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 2 Dec 2022 02:07:21 -0800 Subject: [PATCH] memory savings --- firmware/boards/f0_module/port.cpp | 2 +- firmware/boards/f1_dual/port.cpp | 2 +- firmware/boards/f1_rev2/port.cpp | 2 +- firmware/boards/f1_rev3/port.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/boards/f0_module/port.cpp b/firmware/boards/f0_module/port.cpp index 322f7f5..5834640 100644 --- a/firmware/boards/f0_module/port.cpp +++ b/firmware/boards/f0_module/port.cpp @@ -9,7 +9,7 @@ static adcsample_t adcBuffer[ADC_CHANNEL_COUNT * ADC_OVERSAMPLE]; -ADCConversionGroup convGroup = +const ADCConversionGroup convGroup = { false, ADC_CHANNEL_COUNT, diff --git a/firmware/boards/f1_dual/port.cpp b/firmware/boards/f1_dual/port.cpp index 0f39920..5e5f65f 100644 --- a/firmware/boards/f1_dual/port.cpp +++ b/firmware/boards/f1_dual/port.cpp @@ -10,7 +10,7 @@ static adcsample_t adcBuffer[ADC_CHANNEL_COUNT * ADC_OVERSAMPLE]; -ADCConversionGroup convGroup = +const ADCConversionGroup convGroup = { .circular = false, .num_channels = ADC_CHANNEL_COUNT, diff --git a/firmware/boards/f1_rev2/port.cpp b/firmware/boards/f1_rev2/port.cpp index 28a3608..0862784 100644 --- a/firmware/boards/f1_rev2/port.cpp +++ b/firmware/boards/f1_rev2/port.cpp @@ -10,7 +10,7 @@ static adcsample_t adcBuffer[ADC_CHANNEL_COUNT * ADC_OVERSAMPLE]; -ADCConversionGroup convGroup = +const ADCConversionGroup convGroup = { .circular = false, .num_channels = ADC_CHANNEL_COUNT, diff --git a/firmware/boards/f1_rev3/port.cpp b/firmware/boards/f1_rev3/port.cpp index bc6286c..5b57e04 100644 --- a/firmware/boards/f1_rev3/port.cpp +++ b/firmware/boards/f1_rev3/port.cpp @@ -7,7 +7,7 @@ static adcsample_t adcBuffer[ADC_CHANNEL_COUNT * ADC_OVERSAMPLE]; -ADCConversionGroup convGroup = +const ADCConversionGroup convGroup = { .circular = false, .num_channels = ADC_CHANNEL_COUNT,