Commit 39fc1f24 authored by Tristan Gingold's avatar Tristan Gingold

arch-sim: fix Werror when HA is not enabled

parent 363636f3
...@@ -124,6 +124,7 @@ int sim_set_global_DS(struct pp_instance *ppi) ...@@ -124,6 +124,7 @@ int sim_set_global_DS(struct pp_instance *ppi)
return 0; return 0;
} }
#if CONFIG_HAS_EXT_L1SYNC
/* TODO: share with wrs-startup.c */ /* TODO: share with wrs-startup.c */
static void enable_asymmetryCorrection(struct pp_instance *ppi, Boolean enable ) { static void enable_asymmetryCorrection(struct pp_instance *ppi, Boolean enable ) {
if ( (ppi->asymmetryCorrectionPortDS.enable=enable)==TRUE ) { if ( (ppi->asymmetryCorrectionPortDS.enable=enable)==TRUE ) {
...@@ -136,6 +137,7 @@ static void enable_asymmetryCorrection(struct pp_instance *ppi, Boolean enable ) ...@@ -136,6 +137,7 @@ static void enable_asymmetryCorrection(struct pp_instance *ppi, Boolean enable )
} }
ppi->asymmetryCorrectionPortDS.constantAsymmetry=picos_to_interval(ppi->cfg.constantAsymmetry_ps); ppi->asymmetryCorrectionPortDS.constantAsymmetry=picos_to_interval(ppi->cfg.constantAsymmetry_ps);
} }
#endif
static int sim_ppi_init(struct pp_instance *ppi, int which_ppi) static int sim_ppi_init(struct pp_instance *ppi, int which_ppi)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment