Skip to content

Commit

Permalink
Fixed log msgs case (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
buglloc authored Jan 14, 2024
1 parent 179eb75 commit bd551d3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions components/hardware/src/net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ namespace

switch (event_id) {
case IP_EVENT_ETH_GOT_IP:
ESP_LOGI(TAG, "Ethernet connected");
ESP_LOGI(TAG, "ethernet connected");
break;
case IP_EVENT_STA_GOT_IP:
ESP_LOGI(TAG, "Wifi connected");
ESP_LOGI(TAG, "wifi connected");
break;
default:
ESP_LOGI(TAG, "Something connected");
ESP_LOGI(TAG, "something connected");
}

ESP_LOGI(TAG, "~~~~~~~~~~~");
Expand All @@ -65,7 +65,7 @@ namespace
ESP_LOGI(TAG, "~~~~~~~~~~~");
break;
case IP_EVENT_AP_STAIPASSIGNED:
ESP_LOGI(TAG, "New client connected");
ESP_LOGI(TAG, "new client connected");
ESP_LOGI(TAG, "IP: " IPSTR, IP2STR(&ip_info->ip));
default:
return;
Expand Down
8 changes: 4 additions & 4 deletions components/hardware/src/net_eth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,20 @@ namespace
esp_err_t ret = ESP_OK;
switch (event_id) {
case ETHERNET_EVENT_CONNECTED:
ESP_LOGI(TAG, "Ethernet Link Up");
ESP_LOGI(TAG, "ethernet Link Up");
ESP_GOTO_ON_ERROR(SetIPInfo(ctx->Netif, ctx->NetCfg), err, TAG, "set ip");
break;

case ETHERNET_EVENT_DISCONNECTED:
ESP_LOGI(TAG, "Ethernet Link Down");
ESP_LOGI(TAG, "ethernet Link Down");
break;

case ETHERNET_EVENT_START:
ESP_LOGI(TAG, "Ethernet Started");
ESP_LOGI(TAG, "ethernet Started");
break;

case ETHERNET_EVENT_STOP:
ESP_LOGI(TAG, "Ethernet Stopped");
ESP_LOGI(TAG, "ethernet Stopped");
break;

default:
Expand Down
8 changes: 4 additions & 4 deletions components/lilygo/src/batt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace

#if ADC_CALI_SCHEME_CURVE_FITTING_SUPPORTED
if (!calibrated) {
ESP_LOGI(TAG, "calibration scheme version is %s", "Curve Fitting");
ESP_LOGI(TAG, "calibration scheme version is: Curve Fitting");
adc_cali_curve_fitting_config_t cali_config = {
.unit_id = unit,
.chan = channel,
Expand All @@ -42,7 +42,7 @@ namespace

#if ADC_CALI_SCHEME_LINE_FITTING_SUPPORTED
if (!calibrated) {
ESP_LOGI(TAG, "calibration scheme version is %s", "Line Fitting");
ESP_LOGI(TAG, "calibration scheme version is: Line Fitting");
adc_cali_line_fitting_config_t cali_config = {
.unit_id = unit,
.atten = atten,
Expand All @@ -57,11 +57,11 @@ namespace

*outHandle = handle;
if (ret == ESP_OK) {
ESP_LOGI(TAG, "Calibration Success");
ESP_LOGI(TAG, "calibration Success");
} else if (ret == ESP_ERR_NOT_SUPPORTED || !calibrated) {
ESP_LOGW(TAG, "eFuse not burnt, skip software calibration");
} else {
ESP_LOGE(TAG, "Invalid arg or no memory");
ESP_LOGE(TAG, "invalid arg or no memory");
}

return calibrated;
Expand Down
2 changes: 1 addition & 1 deletion components/lilygo/src/board.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace

void lvGuiTask(void *arg)
{
ESP_LOGI(LV_TAG, "Starting LVGL task");
ESP_LOGI(LV_TAG, "starting LVGL task");
uint32_t taskDelayMS = 0;
Board* board = reinterpret_cast<Board *>(arg);
for (;;)
Expand Down
2 changes: 1 addition & 1 deletion components/lilygo/src/display.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace

esp_err_t Display::Initialize()
{
ESP_LOGD(TAG, "Initializing");
ESP_LOGD(TAG, "initializing");
gpio_set_direction(TFT_PIN_CS, GPIO_MODE_OUTPUT);
gpio_set_direction(TFT_PIN_RST, GPIO_MODE_OUTPUT);
gpio_set_direction(TFT_PIN_TE, GPIO_MODE_INPUT);
Expand Down
2 changes: 1 addition & 1 deletion components/lilygo/src/touch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ esp_err_t TouchSensor::Initialize()
ESP_RETURN_ON_ERROR(ret, TAG, "no mutex allocated");
}

ESP_LOGD(TAG, "Initializing");
ESP_LOGD(TAG, "initializing");
i2c_config_t i2c_conf = {
.mode = I2C_MODE_MASTER,
.sda_io_num = TOUCH_PIN_SDA,
Expand Down

0 comments on commit bd551d3

Please sign in to comment.