Commit 702436bd authored by Pedro Henrique Kopper's avatar Pedro Henrique Kopper

Remover piscadas de LED do driver do ADC

parent fe87a423
......@@ -70,13 +70,10 @@ static msg_t write16bits(void *ip, uint8_t reg, uint16_t val) {
msg_t ret;
uint8_t txbuf[] = { reg, (val >> 8), (val & 0xFF) };
palClearLine(LINE_LED0);
i2cAcquireBus(drvp->config->i2cp);
i2cStart(drvp->config->i2cp, drvp->config->i2ccfg);
palClearLine(LINE_LED1);
ret = i2cMasterTransmitTimeout(drvp->config->i2cp, drvp->config->address,
txbuf, sizeof(txbuf), NULL, 0, TIME_INFINITE);
palClearLine(LINE_LED2);
i2cReleaseBus(drvp->config->i2cp);
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment