[riot-notifications] [RIOT-OS/RIOT] tests: periph_pm: add peripheral test. (#8848)

Bas Stottelaar notifications at github.com
Wed Apr 4 11:07:18 CEST 2018


basilfx commented on this pull request.



> +        return 1;
+    }
+
+    printf("Blocking power mode %d.\n", mode);
+    fflush(stdout);
+
+    pm_block(mode);
+
+    return 0;
+}
+
+static int cmd_set(int argc, char **argv)
+{
+    int mode = parse_mode(argc, argv);
+
+    if (mode < 0) {

This would indicate a error code, so I need to check this here.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/8848#discussion_r179072008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180404/a5d4044d/attachment-0001.html>


More information about the notifications mailing list