count수정

결과 확인해보니 웹페이지의 Real-time CAN messages(by ID) 의 count 작동이 데이터 보내지 않음에도 카운트 되는데 이부분 잘못 된것 같아 can신호가 수집된 갯수를 count 하게 수정해줘, 그리고 logging status, sd card, messages, speed  추가로 현재 로깅되고 있는 파일 명도 추가 해줘
This commit is contained in:
2025-10-04 17:17:44 +00:00
parent 19e74c2ab1
commit bd2986ae0a

View File

@@ -103,9 +103,13 @@ const char* canSpeedNames[] = {"125K", "250K", "500K", "1M"};
CAN_SPEED canSpeedValues[] = {CAN_125KBPS, CAN_250KBPS, CAN_500KBPS, CAN_1000KBPS};
// 실시간 모니터링용
#define RECENT_MSG_COUNT 50
CANMessage recentMessages[RECENT_MSG_COUNT];
uint8_t recentMsgIndex = 0;
#define RECENT_MSG_COUNT 100
struct RecentCANData {
CANMessage msg;
uint32_t count; // 실제 수신 횟수
} recentData[RECENT_MSG_COUNT];
int recentDataIndex = 0;
uint32_t totalMsgCount = 0;
uint32_t msgPerSecond = 0;
uint32_t lastMsgCountTime = 0;