Commit 49c7a06e authored by Peter Jansweijer's avatar Peter Jansweijer

repair preprocessor defines

parent 049ab18c
......@@ -28,11 +28,9 @@ void helper_init(struct spll_helper_state *s, int ref_channel)
#elif defined(CONFIG_WR_NODE)
s->pi.kp = -150;//(int)(0.3 * 32.0 * 16.0); // / 2;
s->pi.ki = -2;//(int)(0.03 * 32.0 * 3.0); // / 2;
if (CONFIG_WR_NODE_SPEC7)
{
s->pi.kp = -800; // / 2;
s->pi.ki = -10; // / 2;
}
#elif defined(CONFIG_WR_NODE_SPEC7)
s->pi.kp = -800; // / 2;
s->pi.ki = -10; // / 2;
#else
s->pi.kp = 150;
s->pi.ki = 2;
......
......@@ -41,11 +41,9 @@ void mpll_init(struct spll_main_state *s, int id_ref,
#elif defined(CONFIG_WR_NODE)
s->pi.kp = -1100; // / 2;
s->pi.ki = -30; // / 2;
if (CONFIG_WR_NODE_SPEC7)
{
s->pi.kp = -800; // / 2;
s->pi.ki = -10; // / 2;
}
#elif defined(CONFIG_WR_NODE_SPEC7)
s->pi.kp = -800; // / 2;
s->pi.ki = -10; // / 2;
#else
#error "Please set CONFIG for wr switch or wr node or SPEC7"
#endif
......
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