Skip to content

Commit

Permalink
Fix some compiler warnings/bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed Dec 21, 2023
1 parent 9bcb12a commit 902ffd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NRF52840/AutoAnalogAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ void AutoAnalog::feedDAC(uint8_t dacChannel, uint32_t samples, bool startInterru
if(dacBitsPerSample > 8){
memcpy(dacBuf0, dacBuffer16, samples);
}else{
for(int i=0; i<samples; i++){
for(uint32_t i=0; i<samples; i++){
dacBuf0[i] = dacBuffer[i] << 8;
}
}
Expand Down Expand Up @@ -398,7 +398,7 @@ void AutoAnalog::set_callback(void(*function)(uint16_t *buf, uint32_t buf_len)){

void AutoAnalog::adcCallback(uint16_t *buf, uint32_t buf_len){

for(int i=0; i < buf_len; i++){
for(uint32_t i=0; i < buf_len; i++){
adcBuffer16[i] = buf[i];
}

Expand Down

0 comments on commit 902ffd9

Please sign in to comment.