Skip to content

Commit

Permalink
Fix compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Sep 25, 2024
1 parent 154a8cd commit d3cdf24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/SensorQMI8658.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ class SensorQMI8658 :
}

/*
* The FIFO_WTM register(0x13) indicates the expected level of FIFO data that host wants to get the FIFO Watermark interrupt.
* The FIFO_WTM register(0x13) indicates the expected level of FIFO data that host wants to get the FIFO Watermark interrupt.
* The unit is sample, which means 6 bytes if one of accelerometer and gyroscope is enabled, and 12 bytes if both are enabled.
* */
if (writeRegister(QMI8658_REG_FIFO_WTM_TH, trigger_samples ) == DEV_WIRE_ERR) {
Expand Down Expand Up @@ -624,7 +624,6 @@ class SensorQMI8658 :
uint16_t readFromFifo()
{
uint8_t status[2];
uint8_t fifo_sensors = 1;
uint16_t fifo_bytes = 0;

if ((__irq != -1) && __fifo_interrupt) {
Expand Down Expand Up @@ -694,7 +693,6 @@ class SensorQMI8658 :
//Samples 64 * 6 * 2 = 768
//Samples 128 * 6 * 2 = 1536

log_d("read_bytes : %d fifo_sensors : %d", fifo_bytes, fifo_sensors);
// 3.Send CTRL_CMD_REQ_FIFO (0x05) by CTRL9 command, to enable FIFO read mode. Refer to CTRL_CMD_REQ_FIFO for details.
if (writeCommand(CTRL_CMD_REQ_FIFO) != DEV_WIRE_NONE) {
log_e("Request FIFO failed!");
Expand Down
5 changes: 5 additions & 0 deletions src/TouchDrvGT9895.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ void TouchDrvGT9895::printChipInfo(struct goodix_ic_info *ic_info)
struct goodix_ic_info_param *parm = &ic_info->parm;
struct goodix_ic_info_misc *misc = &ic_info->misc;

(void)version;
(void)feature;
(void)parm;
(void)misc;

log_d("ic_info_length: %d", ic_info->length);
log_d("info_customer_id: 0x%01X", version->info_customer_id);
log_d("info_version_id: 0x%01X", version->info_version_id);
Expand Down

0 comments on commit d3cdf24

Please sign in to comment.