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:
Hoang Pham Anh Duy
2024-05-29 00:34:38 +07:00
committed by GitHub
parent 51c099163e
commit b62fe46759

View File

@@ -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