Track received frames, bytes in src/aprs_is.c
This commit is contained in:
parent
986f329dd7
commit
f127bd2fc2
1 changed files with 5 additions and 0 deletions
|
@ -317,6 +317,11 @@ int patty_ax25_aprs_is_pending(patty_ax25_aprs_is *aprs) {
|
|||
ssize_t patty_ax25_aprs_is_flush(patty_ax25_aprs_is *aprs) {
|
||||
ssize_t ret = aprs->encoded;
|
||||
|
||||
if (patty_ax25_aprs_is_pending(aprs)) {
|
||||
aprs->stats.rx_frames++;
|
||||
aprs->stats.rx_bytes += ret;
|
||||
}
|
||||
|
||||
aprs->state = APRS_IS_HEADER;
|
||||
aprs->offset_i = aprs->readlen;
|
||||
aprs->offset_call = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue