From 9a93020cb6c774e5280818648bb78b3978052e4f Mon Sep 17 00:00:00 2001 From: dufourj Date: Sat, 13 May 2006 22:36:09 +0000 Subject: --- n/es-2006/src/main.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'n/es-2006/src/main.c') 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'); -- cgit v1.2.3