don't disable interrupts as we are using a ring buffer

This commit is contained in:
Andy Killorin 2025-03-27 12:52:16 -04:00
parent 852f78b4fe
commit f5b7492de6
Signed by: ank
GPG key ID: 23F9463ECB67FE8C

2
main.c
View file

@ -106,12 +106,10 @@ int main(void) {
int32_t adc_current_index;
int32_t j;
if (drawRequested) {
IntMasterDisable(); // critical section
adc_current_index = gADCBufferIndex - 128;
for (j=0; j<LOCAL_BUF_LEN; j++) {
local_adc_buffer[j] = gADCBuffer[ADC_BUFFER_WRAP(adc_current_index + j)];
}
IntMasterEnable();
drawRequested = 0;
}