We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 546d85f commit 7a2271eCopy full SHA for 7a2271e
samples/slave/slave.c
@@ -237,14 +237,24 @@ int slave_init (const char * canif, int bitrate)
237
return -1;
238
}
239
240
+ printf ("Inited\n");
241
+
242
/* Wait a while, then generate error and emergency */
243
os_usleep (5 * 1000);
244
+ printf ("Generating emergency\n");
245
co_error_set (client, CO_ERR_MANUFACTURER);
246
co_emcy_issue (client, 0x1000, 0x1234, NULL);
247
248
/* Clear the error */
249
250
+ printf ("Clearing emergency\n");
251
co_error_clear (client, CO_ERR_MANUFACTURER);
252
253
+ /* Loop forever */
254
+ printf ("Waiting for clients\n");
255
+ for (;;)
256
+ {
257
+ os_usleep (1000 * 1000);
258
+ }
259
return 0;
260
0 commit comments