mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Polling rate fix for Keris Wireless Aimpoint (#2644)
On newest firmware (April 2024), on packet 13, instead start from 0 for polling rate values, they bump it to 96.
This commit is contained in:
committed by
GitHub
parent
51c099163e
commit
b62fe46759
@@ -99,6 +99,18 @@
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// 3.00.06 - 4.00.01 or newer firmware
|
||||
protected override PollingRate ParsePollingRate(byte[] packet)
|
||||
{
|
||||
if (packet[1] == 0x12 && packet[2] == 0x04 && packet[3] == 0x00)
|
||||
{
|
||||
if ((int)packet[13] > 7)
|
||||
return (PollingRate)packet[13] - 96;
|
||||
return (PollingRate)packet[13];
|
||||
}
|
||||
|
||||
return PollingRate.PR125Hz;
|
||||
}
|
||||
}
|
||||
|
||||
public class KerisWirelssAimpointWired : KerisWirelssAimpoint
|
||||
|
||||
Reference in New Issue
Block a user