Skip to content

Commit 62fa423

Browse files
Only show Bluepad32 errors. Keep log messages to the minimum.
Keep log messages to the minimum.
1 parent 4de8712 commit 62fa423

File tree

5 files changed

+93
-7
lines changed

5 files changed

+93
-7
lines changed

bluepad32_files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "framework-arduinoespressif32bluepad32",
3-
"version": "3.9.0",
3+
"version": "4.0-beta.2",
44
"description": "Arduino Wiring-based Framework for the Espressif ESP32, ESP32-S and ESP32-C series of SoCs with Bluepad32",
55
"keywords": [
66
"framework",

bluepad32_files/package_esp32_bluepad32_index.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,90 @@
99
"online": "https://discord.gg/r5aMn6Cw5q"
1010
},
1111
"platforms": [
12+
{
13+
"name": "esp32_bluepad32",
14+
"architecture": "esp32",
15+
"version": "4.0-beta.2",
16+
"category": "Contributed",
17+
"url": "https://github.com/ricardoquesada/esp32-arduino-lib-builder/releases/download/4.0-beta.1/esp32-bluepad32-4.0-beta.2.zip",
18+
"archiveFileName": "esp32-bluepad32-4.0-beta.2.zip",
19+
"checksum": "SHA-256:3a3a9f59feb162490928a445bd28a6f1aea7381f1078bc3e3ea20f5c472b1dfa",
20+
"size": "197534696",
21+
"help": {
22+
"online": "https://discord.gg/r5aMn6Cw5q"
23+
},
24+
"boards": [
25+
{
26+
"name": "ESP32 Dev Board"
27+
},
28+
{
29+
"name": "ESP32-S3 Dev Board"
30+
},
31+
{
32+
"name": "ESP32-C3 Dev Board"
33+
},
34+
{
35+
"name": "Arduino Nano ESP32"
36+
}
37+
],
38+
"toolsDependencies": [
39+
{
40+
"packager": "esp32",
41+
"name": "xtensa-esp32-elf-gcc",
42+
"version": "esp-2021r2-patch5-8.4.0"
43+
},
44+
{
45+
"packager": "esp32",
46+
"name": "xtensa-esp32s2-elf-gcc",
47+
"version": "esp-2021r2-patch5-8.4.0"
48+
},
49+
{
50+
"packager": "esp32",
51+
"name": "xtensa-esp32s3-elf-gcc",
52+
"version": "esp-2021r2-patch5-8.4.0"
53+
},
54+
{
55+
"packager": "esp32",
56+
"name": "xtensa-esp-elf-gdb",
57+
"version": "11.2_20220823"
58+
},
59+
{
60+
"packager": "esp32",
61+
"name": "riscv32-esp-elf-gcc",
62+
"version": "esp-2021r2-patch5-8.4.0"
63+
},
64+
{
65+
"packager": "esp32",
66+
"name": "riscv32-esp-elf-gdb",
67+
"version": "11.2_20220823"
68+
},
69+
{
70+
"packager": "esp32",
71+
"name": "openocd-esp32",
72+
"version": "v0.12.0-esp32-20230419"
73+
},
74+
{
75+
"packager": "esp32",
76+
"name": "esptool_py",
77+
"version": "4.5.1"
78+
},
79+
{
80+
"packager": "esp32",
81+
"name": "mkspiffs",
82+
"version": "0.2.3"
83+
},
84+
{
85+
"packager": "esp32",
86+
"name": "mklittlefs",
87+
"version": "3.0.0-gnu12-dc7f933"
88+
},
89+
{
90+
"packager": "arduino",
91+
"name": "dfu-util",
92+
"version": "0.11.0-arduino5"
93+
}
94+
]
95+
},
1296
{
1397
"name": "esp32_bluepad32",
1498
"architecture": "esp32",

components/bluepad32/bt/uni_bt_le.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static void device_information_packet_handler(uint8_t packet_type, uint16_t chan
384384
// hids_client_disconnect(con_handle);
385385
}
386386
if (status != ERROR_CODE_SUCCESS) {
387-
logi("HID client connection failed, status 0x%02x\n", status);
387+
logi("HID client connection failed, status=%#x\n", status);
388388
hog_disconnect(con_handle);
389389
break;
390390
}
@@ -393,10 +393,10 @@ static void device_information_packet_handler(uint8_t packet_type, uint16_t chan
393393

394394
status = hids_client_enable_notifications(hids_cid);
395395
if (status != ERROR_CODE_SUCCESS)
396-
loge("Failed to enable client notifications for hics_cid=%d\n", hids_cid);
396+
logi("Failed to enable client notifications for hics_cid=%d, status=%#x\n", hids_cid, status);
397397
break;
398398
default:
399-
logi("Device Information service client connection failed, err 0x%02x.\n", status);
399+
logi("Device Information service client connection failed, error=%#x.\n", status);
400400
hog_disconnect(con_handle);
401401
break;
402402
}

components/bluepad32/uni_init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ int uni_init(int argc, const char** argv) {
2121
// Disable stdout buffering
2222
setbuf(stdout, NULL);
2323

24-
logi("Bluepad32 (C) 2016-2024 Ricardo Quesada and contributors.\n");
25-
logi("Version: v" UNI_VERSION "\n");
24+
loge("Bluepad32 (C) 2016-2024 Ricardo Quesada and contributors.\n");
25+
loge("Version: v" UNI_VERSION "\n");
2626

2727
// Honoring BTstack license
28-
logi("BTstack: Copyright (C) 2017 BlueKitchen GmbH.\n");
28+
loge("BTstack: Copyright (C) 2017 BlueKitchen GmbH.\n");
2929

3030
uni_property_init();
3131
uni_platform_init(argc, argv);

configs/defconfig.common

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CONFIG_AUTOSTART_ARDUINO=n
33
CONFIG_ARDUINO_SELECTIVE_COMPILATION=y
44
CONFIG_ARDUINO_SELECTIVE_BLE=n
55
CONFIG_ARDUINO_SELECTIVE_BluetoothSerial=n
6+
CONFIG_BLUEPAD32_LOG_LEVEL_ERROR=y
7+
CONFIG_BLUEPAD32_LOG_LEVEL=1
68
# Bluepad32 changes end
79

810
# CONFIG_WS2812_LED_ENABLE is not set

0 commit comments

Comments
 (0)