Compare commits

..

No commits in common. "ee6392817d5908d3792cccc2c48ab2e837a3314a" and "ce897524dd30f5d07f1079991729d793fdec5005" have entirely different histories.

12
chaos.c
View file

@ -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 = (v>>8) & 0xf;
if (!parse_expression_square(cmd, &v, 0))
rep = v;
if (what & 0x01000000) {
unsigned char rep = 4;
if (v & 0x0f00)
rep = (v>>8) & 0xf;
if (what & 0x1000000) {
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, 0x000008ff),
CMD_KW("adcread", chaos_adc, 281, 0x01000000),
CMD_KW("adctrigger", chaos_adc, 281, 0),
CMD_KW("adcread", chaos_adc, 281, 0x1000000),
CMD_KW("hk", chaos_hk, 282, 0),
CMD_KWF("cmd", plugin_spi, 280, 0x08009800),
{"", {.par=&parser_unknown_command}}};