fix(i2c): ignore dropped sensor packets
Some checks failed
Build firmware / build-firmware (default) (push) Failing after 5s
Build firmware / build-firmware (oryx) (push) Failing after 2s

This commit is contained in:
Florian Didron
2025-12-02 14:58:11 +07:00
parent a837460691
commit cac64e524e
2 changed files with 1 additions and 4 deletions

View File

@@ -52,7 +52,6 @@ uint8_t finger_count(cgen6_report_t *report) {
i2c_status_t cirque_gen6_read_report(uint8_t *data, uint16_t cnt) {
i2c_status_t res = i2c_receive(NAVIGATOR_TRACKPAD_ADDRESS, data, cnt, NAVIGATOR_TRACKPAD_TIMEOUT);
if (res != I2C_STATUS_SUCCESS) {
trackpad_init = false;
return res;
}
wait_us(cnt * 15);
@@ -328,7 +327,6 @@ void navigator_trackpad_device_init(void) {
}
cirque_gen6_clear();
wait_ms(50);
#if defined(NAVIGATOR_TRACKPAD_DEBUG)
uint8_t hardwareId = cirque_gen6_read_reg(CGEN6_HARDWARE_ID, false);
uint8_t firmwareId = cirque_gen6_read_reg(CGEN6_FIRMWARE_ID, false);
uint16_t vendorId = cirque_gen6_read_reg_16(CGEN6_VENDOR_ID);
@@ -351,7 +349,6 @@ void navigator_trackpad_device_init(void) {
printf("Touchpad Uncommitted Version: %s\n", uncommittedVersion ? "true" : "false");
printf("Touchpad Branch Version: %s\n", branchVersion ? "true" : "false");
printf("Touchpad Developer ID: %d\n", developerId);
#endif
#if defined(NAVIGATOR_TRACKPAD_PTP_MODE)
uint8_t res = cirque_gen6_set_ptp_mode();

View File

@@ -26,7 +26,7 @@
# define CIRQUE_PINNACLE_Y_RANGE (CIRQUE_PINNACLE_Y_UPPER - CIRQUE_PINNACLE_Y_LOWER)
# endif
#define NAVIGATOR_TRACKPAD_READ 7
#define NAVIGATOR_TRACKPAD_READ 10
#define NAVIGATOR_TRACKPAD_PROBE 1000
#define NAVIGATOR_TRACKPAD_TAPPING_TERM 100
#define NAVIGATOR_TRACKPAD_TAP_DEBOUNCE 100