Browse Source

Corrected an copy paste error

teensy4-core
Mike S 6 years ago
parent
commit
cd07025412
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      teensy4/analog.c

+ 2
- 0
teensy4/analog.c View File



void analogReadAveraging(unsigned int num) void analogReadAveraging(unsigned int num)
{ {
uint32_t tmp32, mode, avg=0;
//disable averaging //disable averaging
tmp32 = ADC1_GC; tmp32 = ADC1_GC;
ADC1_GC &= ~0x20; ADC1_GC &= ~0x20;

Loading…
Cancel
Save