This commit is contained in:
admin committed 2026-09-11 14:17:37 +07:00
1 parent afff934e77
commit a95b4d21d1
2 files changed
+6

No files matched your search

+5
View File
@@ -81,6 +81,11 @@ public:
const RadarFrame &getLastFrame() const { return _lastFrame; }
const LD2453Stats &getStats() const { return _stats; }
// Kiểm tra xem có đang nhận dữ liệu từ LD2453 không
bool isConnected() const {
return _stats.bytesReceived > 0 && (millis() - _lastByteTime) < 2000;
}
private:
HardwareSerial *_serial = nullptr;