Browse Source

Fix typo in gain config

git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@10877 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/ethstream-1.3
jim 9 years ago
parent
commit
7262486a36
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      ethstream.c
  2. +1
    -0
      ue9.h

+ 1
- 1
ethstream.c View File

@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
info("error: too many gains specified\n");
goto printhelp;
}
if (!(tmp == 0 || tmp == 1 || tmp == 2 || tmp == 4 || tmp == 8)) {
if (!(tmp == 0 || tmp == 1 || tmp == 2 || tmp == 3 || tmp == 8)) {
info("error: invalid gain specified\n");
goto printhelp;
}


+ 1
- 0
ue9.h View File

@@ -68,6 +68,7 @@ struct ue9ControlConfig {
uint16_t dac1;
};

/* These are correct! 0, 1, 2, 3, 8 */
#define UE9_UNIPOLAR_GAIN1 0x00
#define UE9_UNIPOLAR_GAIN2 0x01
#define UE9_UNIPOLAR_GAIN4 0x02


Loading…
Cancel
Save