Code style fixes: sensinode examples
This commit is contained in:
parent
594ba9a0ed
commit
64a95dcb59
19 changed files with 205 additions and 251 deletions
|
@ -79,7 +79,7 @@ static uint16_t len;
|
|||
#define SENSOR_ADC_OFF 1
|
||||
#define SENSOR_UNKNOWN 2
|
||||
|
||||
int8_t read_sensor(char * rs);
|
||||
int8_t read_sensor(char *rs);
|
||||
/*---------------------------------------------------------------------------*/
|
||||
extern const struct sensors_sensor adc_sensor;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -98,7 +98,7 @@ tcpip_handler(void)
|
|||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF("]:%u\n", UIP_HTONS(UIP_UDP_BUF->srcport));
|
||||
len = read_sensor(buf);
|
||||
if( len ) {
|
||||
if(len) {
|
||||
server_conn->rport = UIP_UDP_BUF->srcport;
|
||||
uip_ipaddr_copy(&server_conn->ripaddr, &UIP_IP_BUF->srcipaddr);
|
||||
uip_udp_packet_send(server_conn, buf, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue