Skip to content

Commit

Permalink
fix(PeriphDrivers): Fix MAX32675 timer warning (#1007)
Browse files Browse the repository at this point in the history
Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
  • Loading branch information
ozersa authored May 4, 2024
1 parent 187ff74 commit 92678b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/PeriphDrivers/Source/TMR/tmr_me16.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@

int MXC_TMR_Init(mxc_tmr_regs_t *tmr, mxc_tmr_cfg_t *cfg, bool init_pins)
{
uint8_t tmr_id;
uint8_t tmr_id = MXC_TMR_GET_IDX(tmr);
uint8_t clockSource = MXC_TMR_CLK0;

if (cfg == NULL) {
return E_NULL_PTR;
}

MXC_ASSERT((tmr_id = MXC_TMR_GET_IDX(tmr)) >= 0);
MXC_ASSERT(tmr_id >= 0);

switch (cfg->clock) {
case MXC_TMR_EXT_CLK:
Expand Down

0 comments on commit 92678b9

Please sign in to comment.