Fix code style: zoul examples

This commit is contained in:
George Oikonomou 2015-11-24 12:02:35 +00:00 committed by Antonio Lignan
parent be1bd9a619
commit a30154c43e
3 changed files with 5 additions and 5 deletions

View file

@ -64,8 +64,8 @@ broadcast_recv(struct broadcast_conn *c, const linkaddr_t *from)
{ {
printf("*** Received %u bytes from %u:%u: '0x%04u' ", packetbuf_datalen(), printf("*** Received %u bytes from %u:%u: '0x%04u' ", packetbuf_datalen(),
from->u8[0], from->u8[1], *(uint16_t *)packetbuf_dataptr()); from->u8[0], from->u8[1], *(uint16_t *)packetbuf_dataptr());
printf("%d - %u\n", (int8_t) packetbuf_attr(PACKETBUF_ATTR_RSSI), printf("%d - %u\n", (int8_t)packetbuf_attr(PACKETBUF_ATTR_RSSI),
packetbuf_attr(PACKETBUF_ATTR_LINK_QUALITY)); packetbuf_attr(PACKETBUF_ATTR_LINK_QUALITY));
leds_toggle(LEDS_GREEN); leds_toggle(LEDS_GREEN);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/

View file

@ -154,7 +154,7 @@ PROCESS_THREAD(zoul_demo_process, ev, data)
adc_sensors.value(ZOUL_SENSORS_ADC1)); adc_sensors.value(ZOUL_SENSORS_ADC1));
printf("ADC3 = %d raw\n", printf("ADC3 = %d raw\n",
adc_sensors.value(ZOUL_SENSORS_ADC3)); adc_sensors.value(ZOUL_SENSORS_ADC3));
etimer_set(&et, LOOP_INTERVAL); etimer_set(&et, LOOP_INTERVAL);
rtimer_set(&rt, RTIMER_NOW() + LEDS_OFF_HYSTERISIS, 1, rtimer_set(&rt, RTIMER_NOW() + LEDS_OFF_HYSTERISIS, 1,