Skip to content

Commit 902ffd9

Browse files
committed
Fix some compiler warnings/bugs
1 parent 9bcb12a commit 902ffd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NRF52840/AutoAnalogAudio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ void AutoAnalog::feedDAC(uint8_t dacChannel, uint32_t samples, bool startInterru
277277
if(dacBitsPerSample > 8){
278278
memcpy(dacBuf0, dacBuffer16, samples);
279279
}else{
280-
for(int i=0; i<samples; i++){
280+
for(uint32_t i=0; i<samples; i++){
281281
dacBuf0[i] = dacBuffer[i] << 8;
282282
}
283283
}
@@ -398,7 +398,7 @@ void AutoAnalog::set_callback(void(*function)(uint16_t *buf, uint32_t buf_len)){
398398

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

401-
for(int i=0; i < buf_len; i++){
401+
for(uint32_t i=0; i < buf_len; i++){
402402
adcBuffer16[i] = buf[i];
403403
}
404404

0 commit comments

Comments
 (0)