Fixed compiler warning.

This commit is contained in:
nifi 2008-07-08 12:35:05 +00:00
parent 8db3671d65
commit 8718c41945

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: sound-sensor.c,v 1.2 2008/04/25 15:55:37 joxe Exp $ * @(#)$Id: sound-sensor.c,v 1.3 2008/07/08 12:35:05 nifi Exp $
*/ */
#include <stdlib.h> #include <stdlib.h>
#include "contiki-esb.h" #include "contiki-esb.h"
@ -153,7 +153,7 @@ configure(int type, void *c)
} else if (type == SOUND_SET_BUFFER_SIZE) { } else if (type == SOUND_SET_BUFFER_SIZE) {
buffer_size = (int) c; buffer_size = (int) c;
} else if (type == SOUND_SET_DIV) { } else if (type == SOUND_SET_DIV) {
sample_div = (int8_t) c; sample_div = (int) c & 0xff;
} else if(type == SOUND_START_SAMPLE) { } else if(type == SOUND_START_SAMPLE) {
if(buffer_size > 0) { if(buffer_size > 0) {
leds_on(LEDS_RED); leds_on(LEDS_RED);