Fixes IridiumSBD driver bug when transmitting data

This commit is contained in:
acfloria 2018-02-26 15:53:36 +01:00 committed by Beat Küng
parent ce1b908714
commit fa1586249a

View File

@ -165,7 +165,7 @@ int IridiumSBD::ioctl(struct file *filp, int cmd, unsigned long arg)
return OK;
}
case FIONWRITE: {
case FIONSPACE: {
int count = SATCOM_TX_BUF_LEN - tx_buf_write_idx;
*(int *)arg = count;