Skip to content

Commit

Permalink
firmware: drivers: isis_antenna: Fixing wrong buffer logic comparation
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelboing committed Aug 26, 2023
1 parent 096397c commit 3e2da24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/drivers/isis_antenna/isis_antenna_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int isis_antenna_i2c_write(uint8_t *data, uint16_t len)
{
isis_antenna_delay_ms(1);

if (tca4311a_disable(ants_config) == TCA4311A_NOT_READY)
if (tca4311a_disable(ants_config) == TCA4311A_READY)
{
err = 0;

Expand Down Expand Up @@ -148,7 +148,7 @@ int isis_antenna_i2c_read(uint8_t *data, uint16_t len)
{
isis_antenna_delay_ms(1);

if (tca4311a_disable(ants_config) == TCA4311A_NOT_READY)
if (tca4311a_disable(ants_config) == TCA4311A_READY)
{
err = 0;

Expand Down

0 comments on commit 3e2da24

Please sign in to comment.