arch/arm/src/stm32 and stm32l4: In 1wire driver, do not write useless WRITEBIT zero return value to const buffer
This commit is contained in:
parent
a71aa070e7
commit
af5bcc0c13
@ -981,15 +981,12 @@ static int stm32_1wire_isr(int irq, void *context, void *arg)
|
||||
stm32_1wire_send(priv, READ_TX);
|
||||
break;
|
||||
|
||||
case ONEWIRETASK_WRITEBIT:
|
||||
*priv->byte = 0;
|
||||
priv->msgs = NULL;
|
||||
priv->result = OK;
|
||||
nxsem_post(&priv->sem_isr);
|
||||
break;
|
||||
|
||||
case ONEWIRETASK_READBIT:
|
||||
*priv->byte = (dr == READ_RX1) ? 1 : 0;
|
||||
|
||||
/* Fall through */
|
||||
|
||||
case ONEWIRETASK_WRITEBIT:
|
||||
priv->msgs = NULL;
|
||||
priv->result = OK;
|
||||
nxsem_post(&priv->sem_isr);
|
||||
|
@ -906,15 +906,12 @@ static int stm32_1wire_isr(int irq, void *context, void *arg)
|
||||
stm32_1wire_send(priv, READ_TX);
|
||||
break;
|
||||
|
||||
case ONEWIRETASK_WRITEBIT:
|
||||
*priv->byte = 0;
|
||||
priv->msgs = NULL;
|
||||
priv->result = OK;
|
||||
nxsem_post(&priv->sem_isr);
|
||||
break;
|
||||
|
||||
case ONEWIRETASK_READBIT:
|
||||
*priv->byte = (dr == READ_RX1) ? 1 : 0;
|
||||
|
||||
/* Fall through */
|
||||
|
||||
case ONEWIRETASK_WRITEBIT:
|
||||
priv->msgs = NULL;
|
||||
priv->result = OK;
|
||||
nxsem_post(&priv->sem_isr);
|
||||
|
Loading…
Reference in New Issue
Block a user