|
@@ -319,14 +319,14 @@ static void cnsl_interpret(const char *line) {
|
319
|
319
|
DEV_AUTO_CONNECT(TEST_VOLCANO_AUTO_CONNECT);
|
320
|
320
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
321
|
321
|
|
322
|
|
- int8_t r = volcano_set_target_temp(v);
|
|
322
|
+ int8_t t = volcano_set_target_temp(v);
|
323
|
323
|
|
324
|
324
|
#ifdef TEST_VOLCANO_AUTO_CONNECT
|
325
|
325
|
ble_disconnect();
|
326
|
326
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
327
|
327
|
|
328
|
|
- if (r < 0) {
|
329
|
|
- println("error writing target temp %d", r);
|
|
328
|
+ if (t < 0) {
|
|
329
|
+ println("error writing target temp %d", t);
|
330
|
330
|
} else {
|
331
|
331
|
println("success");
|
332
|
332
|
}
|
|
@@ -341,14 +341,14 @@ static void cnsl_interpret(const char *line) {
|
341
|
341
|
DEV_AUTO_CONNECT(TEST_VOLCANO_AUTO_CONNECT);
|
342
|
342
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
343
|
343
|
|
344
|
|
- int8_t r = volcano_set_heater_state(val == 1);
|
|
344
|
+ int8_t t = volcano_set_heater_state(val == 1);
|
345
|
345
|
|
346
|
346
|
#ifdef TEST_VOLCANO_AUTO_CONNECT
|
347
|
347
|
ble_disconnect();
|
348
|
348
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
349
|
349
|
|
350
|
|
- if (r < 0) {
|
351
|
|
- println("error writing heater state %d", r);
|
|
350
|
+ if (t < 0) {
|
|
351
|
+ println("error writing heater state %d", t);
|
352
|
352
|
} else {
|
353
|
353
|
println("success");
|
354
|
354
|
}
|
|
@@ -363,14 +363,14 @@ static void cnsl_interpret(const char *line) {
|
363
|
363
|
DEV_AUTO_CONNECT(TEST_VOLCANO_AUTO_CONNECT);
|
364
|
364
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
365
|
365
|
|
366
|
|
- int8_t r = volcano_set_pump_state(val == 1);
|
|
366
|
+ int8_t s = volcano_set_pump_state(val == 1);
|
367
|
367
|
|
368
|
368
|
#ifdef TEST_VOLCANO_AUTO_CONNECT
|
369
|
369
|
ble_disconnect();
|
370
|
370
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
371
|
371
|
|
372
|
|
- if (r < 0) {
|
373
|
|
- println("error writing pump state %d", r);
|
|
372
|
+ if (s < 0) {
|
|
373
|
+ println("error writing pump state %d", s);
|
374
|
374
|
} else {
|
375
|
375
|
println("success");
|
376
|
376
|
}
|
|
@@ -385,14 +385,14 @@ static void cnsl_interpret(const char *line) {
|
385
|
385
|
DEV_AUTO_CONNECT(TEST_VOLCANO_AUTO_CONNECT);
|
386
|
386
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
387
|
387
|
|
388
|
|
- int8_t r = volcano_set_unit((val == 'C') ? UNIT_C : UNIT_F);
|
|
388
|
+ int8_t u = volcano_set_unit((val == 'C') ? UNIT_C : UNIT_F);
|
389
|
389
|
|
390
|
390
|
#ifdef TEST_VOLCANO_AUTO_CONNECT
|
391
|
391
|
ble_disconnect();
|
392
|
392
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
393
|
393
|
|
394
|
|
- if (r < 0) {
|
395
|
|
- println("error writing value %d", r);
|
|
394
|
+ if (u < 0) {
|
|
395
|
+ println("error writing value %d", u);
|
396
|
396
|
} else {
|
397
|
397
|
println("success");
|
398
|
398
|
}
|
|
@@ -407,14 +407,14 @@ static void cnsl_interpret(const char *line) {
|
407
|
407
|
DEV_AUTO_CONNECT(TEST_VOLCANO_AUTO_CONNECT);
|
408
|
408
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
409
|
409
|
|
410
|
|
- int8_t r = volcano_set_vibration(val == 1);
|
|
410
|
+ int8_t v = volcano_set_vibration(val == 1);
|
411
|
411
|
|
412
|
412
|
#ifdef TEST_VOLCANO_AUTO_CONNECT
|
413
|
413
|
ble_disconnect();
|
414
|
414
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
415
|
415
|
|
416
|
|
- if (r < 0) {
|
417
|
|
- println("error writing value %d", r);
|
|
416
|
+ if (v < 0) {
|
|
417
|
+ println("error writing value %d", v);
|
418
|
418
|
} else {
|
419
|
419
|
println("success");
|
420
|
420
|
}
|
|
@@ -429,14 +429,14 @@ static void cnsl_interpret(const char *line) {
|
429
|
429
|
DEV_AUTO_CONNECT(TEST_VOLCANO_AUTO_CONNECT);
|
430
|
430
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
431
|
431
|
|
432
|
|
- int8_t r = volcano_set_display_cooling(val == 1);
|
|
432
|
+ int8_t c = volcano_set_display_cooling(val == 1);
|
433
|
433
|
|
434
|
434
|
#ifdef TEST_VOLCANO_AUTO_CONNECT
|
435
|
435
|
ble_disconnect();
|
436
|
436
|
#endif // TEST_VOLCANO_AUTO_CONNECT
|
437
|
437
|
|
438
|
|
- if (r < 0) {
|
439
|
|
- println("error writing value %d", r);
|
|
438
|
+ if (c < 0) {
|
|
439
|
+ println("error writing value %d", c);
|
440
|
440
|
} else {
|
441
|
441
|
println("success");
|
442
|
442
|
}
|
|
@@ -517,14 +517,14 @@ static void cnsl_interpret(const char *line) {
|
517
|
517
|
DEV_AUTO_CONNECT(TEST_CRAFTY_AUTO_CONNECT);
|
518
|
518
|
#endif // TEST_CRAFTY_AUTO_CONNECT
|
519
|
519
|
|
520
|
|
- int8_t r = crafty_set_target_temp(v);
|
|
520
|
+ int8_t t = crafty_set_target_temp(v);
|
521
|
521
|
|
522
|
522
|
#ifdef TEST_CRAFTY_AUTO_CONNECT
|
523
|
523
|
ble_disconnect();
|
524
|
524
|
#endif // TEST_CRAFTY_AUTO_CONNECT
|
525
|
525
|
|
526
|
|
- if (r < 0) {
|
527
|
|
- println("error writing target temp %d", r);
|
|
526
|
+ if (t < 0) {
|
|
527
|
+ println("error writing target temp %d", t);
|
528
|
528
|
} else {
|
529
|
529
|
println("success");
|
530
|
530
|
}
|
|
@@ -539,14 +539,14 @@ static void cnsl_interpret(const char *line) {
|
539
|
539
|
DEV_AUTO_CONNECT(TEST_CRAFTY_AUTO_CONNECT);
|
540
|
540
|
#endif // TEST_CRAFTY_AUTO_CONNECT
|
541
|
541
|
|
542
|
|
- int8_t r = crafty_set_heater_state(val == 1);
|
|
542
|
+ int8_t s = crafty_set_heater_state(val == 1);
|
543
|
543
|
|
544
|
544
|
#ifdef TEST_CRAFTY_AUTO_CONNECT
|
545
|
545
|
ble_disconnect();
|
546
|
546
|
#endif // TEST_CRAFTY_AUTO_CONNECT
|
547
|
547
|
|
548
|
|
- if (r < 0) {
|
549
|
|
- println("error writing heater state %d", r);
|
|
548
|
+ if (s < 0) {
|
|
549
|
+ println("error writing heater state %d", s);
|
550
|
550
|
} else {
|
551
|
551
|
println("success");
|
552
|
552
|
}
|