Skip to content

Commit

Permalink
Fixed typo ptr in logging
Browse files Browse the repository at this point in the history
Updated boards/platformio.ini
  • Loading branch information
rzeldent committed Feb 25, 2024
1 parent 9e72532 commit 5b0bbe7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion boards
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ board = esp32-2424S012N
[env:esp32-2432S022N]
board = esp32-2432S022N

; [env:esp32-2432S022C]
; board = esp32-2432S022C
[env:esp32-2432S022C]
board = esp32-2432S022C

[env:esp32-2432S024C]
board = esp32-2432S024C
Expand Down
2 changes: 1 addition & 1 deletion src/lvgl_cst816s_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static void cst816s_lvgl_touch_cb(lv_indev_drv_t *drv, lv_indev_data_t *data)
data->point.x = touch_x[0];
data->point.y = touch_y[0];
data->state = LV_INDEV_STATE_PRESSED;
log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength);
log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength[0]);
}
else
data->state = LV_INDEV_STATE_RELEASED;
Expand Down
2 changes: 1 addition & 1 deletion src/lvgl_gt911_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static void gt911_lvgl_touch_cb(lv_indev_drv_t *drv, lv_indev_data_t *data)
data->point.x = (touch_x[0] * GT911_TOUCH_CONFIG_X_MAX) / gt_info.xResolution;
data->point.y = (touch_y[0] * GT911_TOUCH_CONFIG_Y_MAX) / gt_info.yResolution;
data->state = LV_INDEV_STATE_PRESSED;
log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength);
log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength[0]);
}
else
data->state = LV_INDEV_STATE_RELEASED;
Expand Down
2 changes: 1 addition & 1 deletion src/lvgl_xpt2046_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static void xpt2046_lvgl_touch_cb(lv_indev_drv_t *drv, lv_indev_data_t *data)
data->point.x = touch_x[0];
data->point.y = touch_y[0];
data->state = LV_INDEV_STATE_PRESSED;
log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength);
log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength[0]);
}
else
data->state = LV_INDEV_STATE_RELEASED;
Expand Down

0 comments on commit 5b0bbe7

Please sign in to comment.