Project

General

Profile

Revision 34

Small colonet cleanup.

View differences:

client.cpp
26 26
int wirelessMessageHandler(ColonetPacket* pkt)
27 27
{
28 28
  printf("Received wireless message!!!\n");
29
  if (!pkt)
30
  {
29
  if (!pkt) {
31 30
    printf("The packet pointer was null.\n");
32 31
    return -1;
33 32
  }
34 33

  
35
  if ((int)pkt->msg_type == COLONET_RESPONSE)
36
  {
34
  if ((int)pkt->msg_type == COLONET_RESPONSE) {
37 35
    printf("response\n");
38 36

  
39 37
    int dest = (int)(pkt->msg_dest);
40

  
41 38
    char buffer[WRITE_BUFFER_SIZE];
42 39
          
43 40
    int value = (int)(pkt->data[0]);
......
50 47
    }
51 48

  
52 49
    printf("Put data in write buffer for client.\n");
53
  }
54
  else
55
  {
50
  } else {
56 51
    printf("not a response\n");
57 52
  }
58 53

  
59 54
  pkt = 0;
60 55
  return 0;
61 56
}
62

  

Also available in: Unified diff