Skip to content

Commit 89274e7

Browse files
committed
fix: Fix code review feedback
1 parent 7371124 commit 89274e7

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

src/display/drivers/AmoledDisplay/Amoled_DisplayPanel.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ bool Amoled_DisplayPanel::initTouch() {
226226

227227
if (tmp->begin(Wire, CST92XX_DEVICE_ADDRESS, hwConfig.i2c_sda, hwConfig.i2c_scl)) {
228228
_touchDrv = tmp;
229-
ESP_LOGI("LilyGo_TDisplayPanel", "Successfully initialized %s!\n", _touchDrv->getModelName());
229+
ESP_LOGI("Amoled_DisplayPanel", "Successfully initialized %s!\n", _touchDrv->getModelName());
230230
tmp->setMaxCoordinates(466, 466);
231231
if (hwConfig.mirror_touch) {
232232
tmp->setMirrorXY(true, true);
@@ -245,15 +245,15 @@ bool Amoled_DisplayPanel::initTouch() {
245245
tmp2->interruptTrigger();
246246

247247
_touchDrv = tmp2;
248-
ESP_LOGI("LilyGo_TDisplayPanel", "Successfully initialized %s!\n", _touchDrv->getModelName());
248+
ESP_LOGI("Amoled_DisplayPanel", "Successfully initialized %s!\n", _touchDrv->getModelName());
249249

250250
touchType = TOUCH_FT3168;
251251
panelType = DISPLAY_1_43_INCHES;
252252
return true;
253253
}
254254
delete tmp2;
255255

256-
ESP_LOGE("LilyGo_TDisplayPanel", "Unable to find touch device.");
256+
ESP_LOGE("Amoled_DisplayPanel", "Unable to find touch device.");
257257
return false;
258258
}
259259

@@ -273,7 +273,7 @@ bool Amoled_DisplayPanel::initDisplay(Amoled_Display_Panel_Color_Order colorOrde
273273

274274
bool success = display->begin(80000000);
275275
if (!success) {
276-
ESP_LOGE("LilyGo_TDisplayPanel", "Failed to initialize display");
276+
ESP_LOGE("Amoled_DisplayPanel", "Failed to initialize display");
277277
return false;
278278
}
279279

src/display/drivers/AmoledDisplay/Amoled_DisplayPanel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file LilyGo_TDisplayPanel.h
2+
* @file Amoled_DisplayPanel.h
33
* @author Borys Tymchenko
44
* @license MIT
55
* @copyright

src/display/drivers/AmoledDisplay/pin_config.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*
2-
* @Description: None
3-
* @Author: LILYGO_L
4-
* @Date: 2023-06-05 13:01:59
5-
* @LastEditTime: 2025-04-26 11:53:07
6-
*/
71
#pragma once
82

93
struct AmoledHwConfig {

src/display/drivers/AmoledDisplayDriver.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef LILYGOTDISPLAYDRIVER_H
2-
#define LILYGOTDISPLAYDRIVER_H
1+
#ifndef AMOLEDDISPLAYDRIVER_H
2+
#define AMOLEDDISPLAYDRIVER_H
33
#include "Driver.h"
44
#include <display/drivers/AmoledDisplay/Amoled_DisplayPanel.h>
55

@@ -29,4 +29,4 @@ class AmoledDisplayDriver : public Driver {
2929
AmoledDisplayDriver() {};
3030
};
3131

32-
#endif // LILYGOTDISPLAYDRIVER_H
32+
#endif // AMOLEDDISPLAYDRIVER_H

0 commit comments

Comments
 (0)