Skip to content
Snippets Groups Projects
Commit b036f7d1 authored by Florian Pose's avatar Florian Pose
Browse files

Updated mini example.

parent e9a9f7b0
No related branches found
No related tags found
No related merge requests found
...@@ -63,8 +63,8 @@ uint32_t k_pos; ...@@ -63,8 +63,8 @@ uint32_t k_pos;
uint8_t k_stat; uint8_t k_stat;
ec_pdo_reg_t domain1_pdos[] = { ec_pdo_reg_t domain1_pdos[] = {
{"1", Beckhoff_EL4132_Output1, &r_ana_out}, {"2", Beckhoff_EL4132_Output1, &r_ana_out},
{"8", Beckhoff_EL5001_Value, NULL}, {"3", Beckhoff_EL5001_Value, NULL},
{} {}
}; };
...@@ -148,7 +148,7 @@ int __init init_mini_module(void) ...@@ -148,7 +148,7 @@ int __init init_mini_module(void)
goto out_release_master; goto out_release_master;
} }
if (!(slave = ecrt_master_get_slave(master, "8"))) if (!(slave = ecrt_master_get_slave(master, "3")))
goto out_release_master; goto out_release_master;
if (ecrt_slave_conf_sdo8(slave, 0x4061, 1, 0)) if (ecrt_slave_conf_sdo8(slave, 0x4061, 1, 0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment