Suspected typo in tmc2209/uartcomm.go

Đang mở
#792 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 3 ngày

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
49/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
embedded-iot

Hướng nghiên cứu

Read tmc2209/uartcomm.go and compare the slave address handling in ReadRegister and WriteRegister. Check the TMC2209 UART protocol or existing driver tests to determine whether the differing values are intentional; done means confirming the expected behavior and, if incorrect, updating the address handling consistently.

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

Mô tả

Slave address is fixed at zero in ReadRegister but not in WriteRegister and that seems like a possible problem to me.

I tried to copy the relevant code sections but yikes! Wrapping it with the <> option didn't look good at all, so just leaving the two lines :

WriteRegister has
comm.address, // Slave address

ReadRegister has
writeBuffer[1] = 0x00 // Slave address

Ngôn ngữ chính
Go
Star
756
Fork
251
Merge trung bình
7 ngày 12 giờ
Pull request đã merge (30 ngày)
8

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

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 tinygo-org/drivers

Tất cả issue của tinygo-org/drivers

Issue tương tự

Thêm issue về Go

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.