Project

General

Profile

Revision 343

prints

View differences:

uart.c
342 342
    free(queue_top(in)); queue_pop(in);
343 343
    size_t sz = 1024; uint8_t *p = malloc(sz*sizeof(uint8_t));
344 344
    size_t i = 0;
345
    printf("reach\n");
345 346
    while(*(uint8_t*)queue_top(in) != NCTP_END){
346 347
        //printf("%c\n", *(uint8_t*)queue_top(in));
347 348
        p[i++] = *(uint8_t*)queue_top(in);
348 349
        free(queue_top(in)); queue_pop(in);
349 350
        if(i >= sz) p = realloc(p, sz=2*sz);
350
    }
351
    }printf("reach2\n");
351 352
    free(queue_top(in)); queue_pop(in);
352 353
    if(process != NULL) process(p, i);
353 354
    free(p);

Also available in: Unified diff