Skip to content

Commit

Permalink
Merge pull request #333 from spacelab-ufsc/antenna_bug_fix
Browse files Browse the repository at this point in the history
Merge pull request from antenna_bug_fix
  • Loading branch information
miguelboing authored Mar 22, 2023
2 parents 6dbe90e + 671cd6e commit d1bfd4c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions firmware/devices/antenna/antenna.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* antenna.c
*
* Copyright (C) 2021, SpaceLab.
* Copyright The OBDH 2.0 Contributors.
*
* This file is part of OBDH 2.0.
*
Expand All @@ -25,7 +25,7 @@
*
* \author Gabriel Mariano Marcelino <[email protected]>
*
* \version 0.8.10
* \version 0.10.2
*
* \date 2019/11/01
*
Expand Down Expand Up @@ -67,7 +67,7 @@ int antenna_init(void)
else
{
#if defined(CONFIG_DRV_ISIS_ANTENNA_ENABLED) && (CONFIG_DRV_ISIS_ANTENNA_ENABLED == 1)
sys_log_print_event_from_module(SYS_LOG_INFO, ANTENNA_MODULE_NAME, "Initializing...");
sys_log_print_event_from_module(SYS_LOG_INFO, ANTENNA_MODULE_NAME, "Initializing the antenna...");
sys_log_new_line();

if (isis_antenna_init() == 0)
Expand Down
6 changes: 3 additions & 3 deletions firmware/drivers/isis_antenna/isis_antenna_i2c.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* isis_antenna_i2c.c
*
* Copyright (C) 2021, SpaceLab.
* Copyright The OBDH 2.0 Contributors.
*
* This file is part of OBDH 2.0.
*
Expand All @@ -25,7 +25,7 @@
*
* \author Gabriel Mariano Marcelino <[email protected]>
*
* \version 0.8.8
* \version 0.10.2
*
* \date 2021/10/10
*
Expand Down Expand Up @@ -60,7 +60,7 @@ int isis_antenna_i2c_init(void)
ants_config.en_pin = ISIS_ANTENNA_I2C_EN_PIN;
ants_config.ready_pin = ISIS_ANTENNA_I2C_RDY_PIN;

if (tca4311a_init(ants_config, false) == TCA4311A_NOT_READY)
if (tca4311a_init(ants_config, false) == TCA4311A_READY)
{
err = 0;
}
Expand Down
8 changes: 4 additions & 4 deletions firmware/drivers/tca4311a/tca4311a.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* tca4311a.h
*
* Copyright (C) 2020, SpaceLab.
* Copyright The OBDH 2.0 Contributors.
*
* This file is part of OBDH 2.0.
*
Expand All @@ -25,7 +25,7 @@
*
* \author Gabriel Mariano Marcelino <[email protected]>
*
* \version 0.3.9
* \version 0.10.2
*
* \date 01/02/2020
*
Expand Down Expand Up @@ -62,8 +62,8 @@ typedef struct
typedef enum
{
TCA4311A_ERROR=-1, /**< Error during initialization. */
TCA4311A_READY, /**< The chip is not ready. */
TCA4311A_NOT_READY /**< The chip is ready. */
TCA4311A_READY, /**< The chip is ready. */
TCA4311A_NOT_READY /**< The chip is not ready. */
} tca4311a_status_e;

/**
Expand Down
6 changes: 3 additions & 3 deletions firmware/tests/drivers/isis_antenna_test.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* isis_antenna_test.c
*
* Copyright (C) 2021, SpaceLab.
* Copyright The OBDH 2.0 Contributors.
*
* This file is part of OBDH 2.0.
*
Expand All @@ -25,7 +25,7 @@
*
* \author Gabriel Mariano Marcelino <[email protected]>
*
* \version 0.8.2
* \version 0.10.2
*
* \date 2021/09/01
*
Expand Down Expand Up @@ -68,7 +68,7 @@ static void isis_antenna_init_test(void **state)

expect_value(__wrap_tca4311a_init, en, false);

will_return(__wrap_tca4311a_init, 1);
will_return(__wrap_tca4311a_init, 0);

assert_return_code(isis_antenna_init(), 0);
}
Expand Down

0 comments on commit d1bfd4c

Please sign in to comment.