Skip to content

Commit 86f5927

Browse files
committed
samples: bluetooth: ble_nus: Change behavior
Changed the behavior to align with NCS uart sample. Signed-off-by: Martin Engesvold <[email protected]>
1 parent 0210b39 commit 86f5927

File tree

1 file changed

+1
-1
lines changed
  • samples/bluetooth/ble_nus/src

1 file changed

+1
-1
lines changed

samples/bluetooth/ble_nus/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void uarte_rx_handler(char *data, size_t data_len)
6262
for (int i = 0; i < data_len; i++) {
6363
c = data[i];
6464

65-
if ((rx_buf_idx < sizeof(rx_buf)) && (c != '\n') && (c != '\r')) {
65+
if (rx_buf_idx < sizeof(rx_buf)) {
6666
rx_buf[rx_buf_idx++] = c;
6767
}
6868

0 commit comments

Comments
 (0)