Subversion Repositories Code-Repo

Rev

Rev 114 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 114 Rev 117
Line 67... Line 67...
67
    if (length > buffer_data->stored_length) {
67
    if (length > buffer_data->stored_length) {
68
        DBG_PRINT_BUFFER("Buffer: (ERROR) Read length exceedes stored length\r\n");
68
        DBG_PRINT_BUFFER("Buffer: (ERROR) Read length exceedes stored length\r\n");
69
        pwm_LED_on();   // Turn on LED to indicate full buffer
69
        pwm_LED_on();   // Turn on LED to indicate full buffer
70
        return -1;
70
        return -1;
71
    }
71
    }
-
 
72
    // Turn off LED on successful read
-
 
73
    pwm_LED_off();
72
 
74
    
73
    // Update the amount of used space in the buffer
75
    // Update the amount of used space in the buffer
74
    buffer_data->stored_length -= length;
76
    buffer_data->stored_length -= length;
75
 
77
 
76
    // Copy data from buffer to dest
78
    // Copy data from buffer to dest
77
    for (i = 0; i < length; i++) {
79
    for (i = 0; i < length; i++) {