Skip to content

Commit e72d945

Browse files
authored
fixes API declaration
1 parent 76e28e8 commit e72d945

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: cores/esp32/HWCDC.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2020 Espressif Systems (Shanghai) PTE LTD
1+
// Copyright 2015-2024 Espressif Systems (Shanghai) PTE LTD
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ class HWCDC: public Stream
4747
{
4848
private:
4949
static bool deinit(void * busptr);
50-
bool isCDC_Connected();
50+
static bool isCDC_Connected();
5151

5252
public:
5353
HWCDC();
@@ -71,12 +71,12 @@ class HWCDC: public Stream
7171
size_t write(const uint8_t *buffer, size_t size);
7272
void flush(void);
7373

74-
inline bool isPlugged(void)
74+
inline static bool isPlugged(void)
7575
{
7676
return usb_serial_jtag_is_connected();
7777
}
7878

79-
inline bool isConnected(void)
79+
inline static bool isConnected(void)
8080
{
8181
return isCDC_Connected();
8282
}

0 commit comments

Comments
 (0)