Skip to content

Commit 1060842

Browse files
committed
add define for vendor_flush() to write_flush() for backward compatible
1 parent 5f327dd commit 1060842

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/class/vendor/vendor_device.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ uint32_t tud_vendor_n_write_flush (uint8_t itf);
5252
uint32_t tud_vendor_n_write_available (uint8_t itf);
5353

5454
static inline uint32_t tud_vendor_n_write_str (uint8_t itf, char const* str);
55-
uint32_t tud_vendor_n_flush (uint8_t itf);
55+
56+
// backward compatible
57+
#define tud_vendor_n_flush(itf) tud_vendor_n_write_flush(itf)
5658

5759
//--------------------------------------------------------------------+
5860
// Application API (Single Port)
@@ -67,6 +69,9 @@ static inline uint32_t tud_vendor_write_str (char const* str);
6769
static inline uint32_t tud_vendor_write_available (void);
6870
static inline uint32_t tud_vendor_write_flush (void);
6971

72+
// backward compatible
73+
#define tud_vendor_flush() tud_vendor_write_flush()
74+
7075
//--------------------------------------------------------------------+
7176
// Application Callback API (weak is optional)
7277
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)