@@ -85,11 +85,11 @@ void handle_event(const cdc_acm_host_dev_event_data_t *event, void *user_ctx) {
85
85
#endif // ESP3D_HTTP_FEATURE
86
86
break ;
87
87
case CDC_ACM_HOST_DEVICE_DISCONNECTED:
88
- esp3d_log_d (" Device suddenly disconnected" );
88
+ esp3d_log (" Device suddenly disconnected" );
89
89
usbSerialClient.setConnected (false );
90
90
break ;
91
91
case CDC_ACM_HOST_SERIAL_STATE:
92
- esp3d_log_d (" Serial state notif 0x%04X" , event->data .serial_state .val );
92
+ esp3d_log (" Serial state notif 0x%04X" , event->data .serial_state .val );
93
93
break ;
94
94
case CDC_ACM_HOST_NETWORK_CONNECTION:
95
95
default :
@@ -130,15 +130,15 @@ void ESP3DUsbSerialClient::connectDevice() {
130
130
131
131
esp3d_hal::wait (10 );
132
132
133
- esp3d_log_d (" USB device found" );
133
+ esp3d_log (" USB device found" );
134
134
135
135
if (_vcp_ptr->line_coding_set (&line_coding) == ESP_OK) {
136
- esp3d_log_d (" USB Connected" );
136
+ esp3d_log (" USB Connected" );
137
137
usbSerialClient.setConnected (true );
138
138
esp3d_hal::wait (10 );
139
139
_vcp_ptr = nullptr ;
140
140
} else {
141
- esp3d_log_d (" USB device not identified" );
141
+ esp3d_log (" USB device not identified" );
142
142
}
143
143
}
144
144
@@ -152,7 +152,7 @@ static void esp3d_usb_serial_connection_task(void *pvParameter) {
152
152
if (usbSerialClient.started ()) {
153
153
usbSerialClient.connectDevice ();
154
154
} else {
155
- esp3d_log_d (" USB serial client not started" );
155
+ esp3d_log (" USB serial client not started" );
156
156
}
157
157
158
158
}
@@ -164,7 +164,7 @@ void ESP3DUsbSerialClient::setConnected(bool connected) {
164
164
_connected = connected;
165
165
166
166
if (_connected) {
167
- esp3d_log_d (" USB device connected" );
167
+ esp3d_log (" USB device connected" );
168
168
#if ESP3D_HTTP_FEATURE
169
169
esp3dWsWebUiService.pushNotification (" Connected" );
170
170
#endif // ESP3D_HTTP_FEATURE
@@ -173,7 +173,7 @@ void ESP3DUsbSerialClient::setConnected(bool connected) {
173
173
_connected=false ;
174
174
}
175
175
} else {
176
- esp3d_log_d (" USB device disconnected" );
176
+ esp3d_log (" USB device disconnected" );
177
177
#if ESP3D_HTTP_FEATURE
178
178
esp3dWsWebUiService.pushNotification (" Disconnected" );
179
179
#endif // ESP3D_HTTP_FEATURE
@@ -195,7 +195,7 @@ ESP3DUsbSerialClient::ESP3DUsbSerialClient() {
195
195
ESP3DUsbSerialClient::~ESP3DUsbSerialClient () { end (); }
196
196
197
197
void ESP3DUsbSerialClient::process (ESP3DMessage *msg) {
198
- esp3d_log_d (" Add message to queue" );
198
+ esp3d_log (" Add message to queue" );
199
199
if (!addTxData (msg)) {
200
200
flush ();
201
201
if (!addTxData (msg)) {
@@ -244,7 +244,7 @@ bool ESP3DUsbSerialClient::begin() {
244
244
_baudrate = esp3dTftsettings.getDefaultIntegerSetting (
245
245
ESP3DSettingIndex::esp3d_usb_serial_baud_rate);
246
246
}
247
- esp3d_log_d (" Use %ld USB Serial Baud Rate" , _baudrate);
247
+ esp3d_log (" Use %ld USB Serial Baud Rate" , _baudrate);
248
248
249
249
// Serial is never stopped so no need to kill the task from outside
250
250
_started = true ;
@@ -254,8 +254,8 @@ bool ESP3DUsbSerialClient::begin() {
254
254
&_xHandle, ESP3D_USB_SERIAL_TASK_CORE);
255
255
256
256
if (res == pdPASS && _xHandle) {
257
- esp3d_log_d (" Created USB Serial Connection Task" );
258
- esp3d_log_d (" USB serial client started" );
257
+ esp3d_log (" Created USB Serial Connection Task" );
258
+ esp3d_log (" USB serial client started" );
259
259
flush ();
260
260
return true ;
261
261
} else {
@@ -303,13 +303,13 @@ void ESP3DUsbSerialClient::handle() {
303
303
if (getTxMsgsCount () > 0 ) {
304
304
ESP3DMessage *msg = popTx ();
305
305
if (msg) {
306
- esp3d_log_d (" Got message to send" );
306
+ esp3d_log (" Got message to send" );
307
307
if (_connected) {
308
- esp3d_log_d (" Send message" );
308
+ esp3d_log (" Send message" );
309
309
// TODO: check if msg->size < ESP3D_USB_SERIAL_TX_BUFFER_SIZE
310
310
if (_vcp_ptr && _vcp_ptr->tx_blocking (msg->data , msg->size ) == ESP_OK) {
311
311
if (!(_vcp_ptr && _vcp_ptr->set_control_line_state (true , true ) == ESP_OK)) {
312
- esp3d_log_d (" Failed set line" );
312
+ esp3d_log (" Failed set line" );
313
313
}
314
314
} else {
315
315
esp3d_log_e (" Failed to send message" );
@@ -328,9 +328,9 @@ void ESP3DUsbSerialClient::end() {
328
328
if (_started) {
329
329
flush ();
330
330
_started = false ;
331
- esp3d_log_d (" Clearing queue Rx messages" );
331
+ esp3d_log (" Clearing queue Rx messages" );
332
332
clearRxQueue ();
333
- esp3d_log_d (" Clearing queue Tx messages" );
333
+ esp3d_log (" Clearing queue Tx messages" );
334
334
clearTxQueue ();
335
335
esp3d_hal::wait (1000 );
336
336
if (pthread_mutex_destroy (&_tx_mutex) != 0 ) {
@@ -339,7 +339,7 @@ void ESP3DUsbSerialClient::end() {
339
339
if (pthread_mutex_destroy (&_rx_mutex) != 0 ) {
340
340
esp3d_log_w (" Mutex destruction for rx failed" );
341
341
}
342
- esp3d_log_d (" Uninstalling USB Serial drivers" );
342
+ esp3d_log (" Uninstalling USB Serial drivers" );
343
343
setConnected (false );
344
344
vSemaphoreDelete (_device_disconnected_sem);
345
345
_device_disconnected_sem = NULL ;
0 commit comments