Earl31 / btstack

Automatically exported from code.google.com/p/btstack
0 stars 0 forks source link

bugs in example/rfcomm-echo.c and example/rfcomm-test.c #359

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
related source:

uint8_t test_data[1021];
void create_test_data(void){
    int x,y;
    for (y=0;y<25;y++){
        for (x=0;x<78;x++){
            test_data[y*80+x] = '0' + (x % 10);
        }
        test_data[y*80+78] = '\n';
        test_data[y*80+79] = '\r';
    }
}

in create_test_data function, array test_data must has 25*80=2000 Bytes ,but 
there only has 1021 Bytes.

Original issue reported on code.google.com by wmy...@126.com on 27 Nov 2013 at 7:45

GoogleCodeExporter commented 8 years ago
Thanks, that's correct. Fixed in r2095.

Original comment by matthias.ringwald@gmail.com on 7 Jan 2014 at 7:38