Browse Source

Corrected an copy paste error

main
Mike S 5 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

@@ -89,6 +89,8 @@ void analogReadRes(unsigned int bits)

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

Loading…
Cancel
Save