Skip to content

Commit 27e5a8f

Browse files
Zagaroothkartben
authored andcommitted
usb: device: fix CDC ACM serial state notification for Rx Carrier
Use the actual value instead of the flag. Signed-off-by: Øyvind Hagen <[email protected]>
1 parent f94ab07 commit 27e5a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/usb/device/class/cdc_acm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static int cdc_acm_line_ctrl_set(const struct device *dev,
823823
if (val) {
824824
dev_data->serial_state |= SERIAL_STATE_RX_CARRIER;
825825
}
826-
cdc_acm_send_notification(dev, SERIAL_STATE_RX_CARRIER);
826+
cdc_acm_send_notification(dev, dev_data->serial_state);
827827
return 0;
828828
case USB_CDC_LINE_CTRL_DSR:
829829
dev_data->serial_state &= ~SERIAL_STATE_TX_CARRIER;

0 commit comments

Comments
 (0)