This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

m_ant_observer question ?

Dear Members,

I want to receive data from bicycle power transmitter and heart monitor in the same receiver,

I got :

..\..\..\main_hrm_bsc_lcd.c(1202): error:  #148: variable "m_ant_observer"  has already been initialized
  NRF_SDH_ANT_OBSERVER(m_ant_observer, ANT_HRM_ANT_OBSERVER_PRIO,

m_ant_observer variable,

It is initialized at :

Line 188 NRF_SDH_ANT_OBSERVER(m_ant_observer, ANT_BPWR_ANT_OBSERVER_PRIO,
                     ant_bpwr_disp_evt_handler, &m_ant_bpwr);

and

  Line 1202
  NRF_SDH_ANT_OBSERVER(m_ant_observer, ANT_HRM_ANT_OBSERVER_PRIO,
                     ant_hrm_disp_evt_handler, &m_ant_hrm);

How can I rectify this issue ?

Regards,

Parents Reply Children
No Data
Related