Browse Source

Fix numerical rollover in audio memory management

main
PaulStoffregen 7 years ago
parent
commit
4e180ad26e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/AudioStream.cpp

+ 1
- 1
teensy3/AudioStream.cpp View File

@@ -92,7 +92,7 @@ audio_block_t * AudioStream::allocate(void)
uint32_t n, index, avail;
uint32_t *p, *end;
audio_block_t *block;
uint8_t used;
uint32_t used;

p = memory_pool_available_mask;
end = p + NUM_MASKS;

Loading…
Cancel
Save