Compare commits
3 commits
ce897524dd
...
ee6392817d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee6392817d | ||
|
|
d29e68274f | ||
|
|
09bbc3061b |
1 changed files with 6 additions and 6 deletions
12
chaos.c
12
chaos.c
|
|
@ -94,10 +94,10 @@ static int chaos_adc(struct command *cmd, const struct command_par *par)
|
|||
unsigned char chs = v;
|
||||
if (!chs)
|
||||
chs = 0xff;
|
||||
unsigned char rep = 4;
|
||||
if (v & 0x0f00)
|
||||
rep = (v>>8) & 0xf;
|
||||
if (what & 0x1000000) {
|
||||
unsigned char rep = (v>>8) & 0xf;
|
||||
if (!parse_expression_square(cmd, &v, 0))
|
||||
rep = v;
|
||||
if (what & 0x01000000) {
|
||||
if (ads8688_results(chs))
|
||||
c = error_code(par);
|
||||
}
|
||||
|
|
@ -135,8 +135,8 @@ const struct keywords chaos_variable_names[] = {
|
|||
};
|
||||
|
||||
static const struct keywords commands[] = {
|
||||
CMD_KW("adctrigger", chaos_adc, 281, 0),
|
||||
CMD_KW("adcread", chaos_adc, 281, 0x1000000),
|
||||
CMD_KW("adctrigger", chaos_adc, 281, 0x000008ff),
|
||||
CMD_KW("adcread", chaos_adc, 281, 0x01000000),
|
||||
CMD_KW("hk", chaos_hk, 282, 0),
|
||||
CMD_KWF("cmd", plugin_spi, 280, 0x08009800),
|
||||
{"", {.par=&parser_unknown_command}}};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue