diff options
Diffstat (limited to 'xhfc/base.c')
-rw-r--r-- | xhfc/base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xhfc/base.c b/xhfc/base.c index 0fcbb40..b8c2ade 100644 --- a/xhfc/base.c +++ b/xhfc/base.c @@ -767,13 +767,13 @@ static void xhfc_hard_reset(void) static inline int lebcs1_bit_nt(int port) { - return (port * 2); + return (port * 2) + 1; } /* on the leb, cs1 */ static inline int lebcs1_bit_term(int port) { - return (port * 2) + 1; + return (port * 2); } static inline u8 byte_replace_bit(u8 byte, int nr, bool value) @@ -793,7 +793,7 @@ static void configure_ntte(struct xhfc_span *xhfc_span, int nt) soft_conf = byte_replace_bit(soft_conf, lebcs1_bit_nt(xhfc_span->port), - !!nt); + !nt); xhfc->pi->soft_conf_byte = soft_conf; write_xhfc_soft_conf(xhfc, soft_conf); |