[2.8] hop_start == 0 without a bitfield means unknown, not direct

Đang mở
#450 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start with the hop calculation in serializers.py (lines 1641-1649) and the direct-detection logic in dx_monitoring/services.py (lines 32-37), then find where decoded.bitfield is read. Check how hop_start == 0 is handled today. Done when a packet with hop_start == 0 and no bitfield is treated as unknown hops, a hop_limit == 0 guard exists, tests cover both cases, and normal hop counts are unchanged.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement meshtastic-2.8

Part of pskillen/meshflow-api#437 (Meshtastic 2.8.x support). Code: HP-2 · Priority: Should · Size: S

Summary

Treat hop_start == 0 with no decoded.bitfield as unknown hops; store bitfield presence; guard direct-detection and hop-count calculations; add a guard for future hop exhaustion (hop_limit == 0).

Acceptance criteria

  • Tests
  • Hop count unchanged for normal packets

Depends on: none

Refs: serializers.py:1641-1649, dx_monitoring/services.py:32-37

Ngôn ngữ chính
Python
Star
1
Fork
0
Merge trung bình
23 giờ 9 phút
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pskillen/meshflow-api

Tất cả issue của pskillen/meshflow-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.