summaryrefslogtreecommitdiff
path: root/n/es-2006/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/es-2006/src/main.c')
-rw-r--r--n/es-2006/src/main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/n/es-2006/src/main.c b/n/es-2006/src/main.c
index 078fc19..187232c 100644
--- a/n/es-2006/src/main.c
+++ b/n/es-2006/src/main.c
@@ -84,8 +84,11 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
v8_to_v16 (args[7], args[8]));
break;
/* Set current color as reference */
- case c ('r', 1):
- sniff_rvb_set_ref_color (args[0]);
+ case c ('r', 3):
+ temp_16b = v8_to_v16 (args[0], args[1]);
+ for (compt = 0; compt < RVB_MAX_SENSOR; compt++)
+ if (temp_16b & _BV(compt))
+ sniff_rvb_set_ref_color (compt, args[2]);
break;
/* Print stats if the sensor is seen */
case c ('A', 3):
@@ -139,8 +142,8 @@ main (void)
sei ();
// XXX
- sniff_rvb_set_threshold (RVB_SNIFF_RED, -100, -85, 725, 0);
- sniff_rvb_set_threshold (RVB_SNIFF_BLUE, 650, -140, -1050, -950);
+// sniff_rvb_set_threshold (RVB_SNIFF_RED, -100, -85, 725, 0);
+// sniff_rvb_set_threshold (RVB_SNIFF_BLUE, 650, -140, -1050, -950);
/* We are ready ! */
proto_send0 ('z');