Skip to content

Commit

Permalink
fix: Fixed incorrect coordinates when legacy mode enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Dec 22, 2024
1 parent 6e6e17a commit 29bdbfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/explorer/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ type ExplorerDriverImpl struct {
}

func (e *ExplorerDriverImpl) handleReadLegacyPacket(deps *ExplorerDependency, fifoBuffer *fifo.Buffer) {
// Set to 0xFFFFFFFF to indicate legacy mode
deps.Config.SetDeviceInfo(math.MaxUint32)
// Set to 0x7FFFFFFF to indicate legacy mode (bit 31 set to 0 to force fallback coordinates)
deps.Config.SetDeviceInfo(math.MaxUint32 & 0x7FFFFFFF)

findIndices := func(arr []byte, sep []byte) []int {
var indices []int
Expand Down

0 comments on commit 29bdbfe

Please sign in to comment.