tle8888 output fix
This commit is contained in:
parent
a8ab218888
commit
4dbff5ff30
|
@ -611,7 +611,7 @@ int tle8888SpiStartupExchange(struct tle8888_priv *chip) {
|
|||
/* in config counted from 1 */
|
||||
mask = (1 << (out - 1));
|
||||
|
||||
/* check if output already ocupied */
|
||||
/* check if output already occupied */
|
||||
if (chip->o_direct_mask & mask) {
|
||||
/* incorrect config? */
|
||||
return -1;
|
||||
|
|
|
@ -62,11 +62,11 @@ static void tle8888_dump_regs(void)
|
|||
tle8888_read_reg(0, NULL);
|
||||
|
||||
scheduleMsg(&logger, "register: data");
|
||||
for (for request = 0; request < 0x7e + 1; request++) {
|
||||
for (int request = 0; request < 0x7e + 1; request++) {
|
||||
uint16_t tmp;
|
||||
tle8888_read_reg(request, &tmp);
|
||||
uint8_t response = (tmp >> 1) & 0x7f
|
||||
uint8_t data = (tmp >> 8) & 0xff);
|
||||
uint8_t response = (tmp >> 1) & 0x7f;
|
||||
uint8_t data = (tmp >> 8) & 0xff;
|
||||
|
||||
scheduleMsg(&logger, "%02x: %02x", response, data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue