Revision d27d4e62

View differences:

code/server/receive.c
188 188
    src = (send_buf[4] << 8) | send_buf[5];
189 189
    m_state = send_buf[9];
190 190
    time_left = ((uint8_t)send_buf[10] << 8) | (uint8_t)send_buf[11];
191
    printf("len MSB: %x", (uint8_t)send_buf[10]);
192
    printf(" len LSB: %x ", (uint8_t)send_buf[11]);
191
    //printf("len MSB: %x", (uint8_t)send_buf[10]);
192
    //printf(" len LSB: %x ", (uint8_t)send_buf[11]);
193 193

  
194 194
    btn_status = send_buf[12];
195 195
    sonar_status = send_buf[13];
......
203 203

  
204 204
    #ifdef USE_SERVER
205 205
    int sock = socket_open();
206
    printf("sending to server\n");
206
    //printf("sending to server\n");
207 207
    if (send(sock, send_buf, len+4, 0) != len+4) {
208 208
            printf("Mismatch in number of sent bytes");
209 209
            close(sock);
......
243 243
            return -1;
244 244
    }
245 245

  
246
    printf("Socket created!?\n");
246
    //printf("Socket created!?\n");
247 247

  
248 248
    return sock;
249 249
}

Also available in: Unified diff