feat: added reset statistics

This commit is contained in:
2025-05-06 08:58:28 +03:00
parent 7d1653b076
commit cedea19f1a
3 changed files with 14 additions and 1 deletions

View File

@ -508,4 +508,12 @@ uint8_t zh_espnow_get_version(void)
const zh_espnow_stats_t *zh_espnow_get_stats(void)
{
return &_stats;
}
void zh_espnow_reset_stats(void)
{
_stats.sent_success = 0;
_stats.sent_fail = 0;
_stats.received = 0;
ZH_ESPNOW_LOGI("ESP-NOW statistic reset successfully.");
}