lib/fpm.c
static int16_t read_ack_get_response(FPM * fpm, uint8_t * rc) {
    uint8_t pktid = 0;
    int16_t len = get_reply(fpm, fpm->buffer, FPM_BUFFER_SZ, &pktid, NULL);
    
    /* most likely timed out */
    if (len < 0)
        return len;
    
    /* wrong pkt id */
    if (pktid != FPM_ACKPACKET)
        return FPM_READ_ERROR;
    
    *rc = fpm->buffer[0];
    
    /* minus confirmation code */
    return --len;
}
/* read standard ACK-reply into library fpm->buffer and
 * return packet length and confirmation code */
read standard ACK-reply into library fpm->buffer and
return packet length and confirmation code
read standard ACK - reply into library fpm - > buffer and return packet length and confirmation code
static int16_t read_ack_get_response(FPM * fpm, uint8_t * rc) {
    uint8_t pktid = 0;
    int16_t len = get_reply(fpm, fpm->buffer, FPM_BUFFER_SZ, &pktid, NULL);
    if (len < 0)
        return len;
    if (pktid != FPM_ACKPACKET)
        return FPM_READ_ERROR;
    *rc = fpm->buffer[0];
    return --len;
}
static int16_t read_ack_get_response ( FPM * fpm , uint8_t * rc ) { uint8_t pktid = 0 ; int16_t len = get_reply ( fpm , fpm -> buffer , FPM_BUFFER_SZ , & pktid , NULL ) ; if ( len < 0 ) return len ; if ( pktid != FPM_ACKPACKET ) return FPM_READ_ERROR ; * rc = fpm -> buffer [ 0 ] ; return -- len ; }
read standard ACK-reply into library fpm->buffer and
 return packet length and confirmation code
read standard ACK - reply into library fpm - > buffer and return packet length and confirmation code
/* most likely timed out */ /* wrong pkt id */ /* minus confirmation code */