Commit 5edaf3bc authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Fix pdo_data logic (was reversed and only worked once)

parent 6eb8a0c7
......@@ -36,6 +36,8 @@ struct controller_block_private {
static void calculate(struct controller_block *ec)
{
if (ec_rx_pdo()) {
ec->private->pdo_data = false;
} else {
ec->private->pdo_data = true;
}
}
......
Supports Markdown
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