Commit 7262486a by jim

Fix typo in gain config

git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@10877 ddd99763-3ecb-0310-9145-efcb8ce7c51f
parent 0f71b79b
Showing with 2 additions and 1 deletions
...@@ -179,7 +179,7 @@ int main(int argc, char *argv[]) ...@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
info("error: too many gains specified\n"); info("error: too many gains specified\n");
goto printhelp; 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"); info("error: invalid gain specified\n");
goto printhelp; goto printhelp;
} }
......
...@@ -68,6 +68,7 @@ struct ue9ControlConfig { ...@@ -68,6 +68,7 @@ struct ue9ControlConfig {
uint16_t dac1; uint16_t dac1;
}; };
/* These are correct! 0, 1, 2, 3, 8 */
#define UE9_UNIPOLAR_GAIN1 0x00 #define UE9_UNIPOLAR_GAIN1 0x00
#define UE9_UNIPOLAR_GAIN2 0x01 #define UE9_UNIPOLAR_GAIN2 0x01
#define UE9_UNIPOLAR_GAIN4 0x02 #define UE9_UNIPOLAR_GAIN4 0x02
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment