Compare commits

...

2 commits

Author SHA1 Message Date
Stephan I. Böttcher
a3bf7a7275 ssp_run_batch: fix repeat (op precedence, logic), support init w/o assert 2024-12-02 22:20:02 +01:00
Stephan I. Böttcher
0265ee85a2 pressure/hash: fix keyword entry 2024-12-02 22:18:01 +01:00
2 changed files with 4 additions and 4 deletions

View file

@ -208,7 +208,7 @@ int pressure_cmd(struct command *cmd, const struct command_par *par)
e = ssp_error("bate submit", c);
goto error;
}
if (what & 0x0040) {
if (what & 0x0080) {
idx = calib_pressure(what&3);
if (idx < 0) {
code++;

6
ssp.c
View file

@ -345,7 +345,7 @@ int ssp_run_batch()
if (c == ssp_b_job)
ssel_delay(f);
}
if (f & ssp_b_assert || c == ssp_b_config) {
if (f & ssp_b_assert) {
ssp_assert_ssel();
if (c == ssp_b_job)
ssel_delay(f);
@ -354,8 +354,8 @@ int ssp_run_batch()
static const struct ssp_batch *gosub_return;
static unsigned int repeats, gosub_repeats;
if (c != ssp_b_job && c != ssp_b_gosub
|| repeats++ >= f & ssp_b_repeat
|| ssp_b_whilebuf & !job.buf_count) {
|| repeats++ >= (f & ssp_b_repeat)
|| ssp_b_whilebuf && !job.buf_count) {
// we did all repeats … advance to the next job
repeats = 0;
ssp_batch++;