Skip to content

Commit

Permalink
Merge branch 'shell-write-string' of https://github.com/borisxm/bluep…
Browse files Browse the repository at this point in the history
…ill-serial-monster into shell-write-string
  • Loading branch information
vnodeng committed Dec 2, 2020
2 parents d693a74 + 34b6e5d commit ae3906e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cdc_shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define USB_SHELL_MAC_CMD_ARGS 0x10

extern void cdc_shell_write(const void *buf, size_t count);
extern void cdc_shell_write_string(const char *buf);

void cdc_shell_init();
void cdc_shell_process_input(const void *buf, size_t count);
Expand Down
4 changes: 4 additions & 0 deletions usb_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ void cdc_shell_write(const void *buf, size_t count) {
}
}

void cdc_shell_write_string(const char *buf) {
cdc_shell_write(buf, strlen(buf));
}

/* USB USART TX Functions */

static void usb_cdc_port_start_tx(int port) {
Expand Down

0 comments on commit ae3906e

Please sign in to comment.