[riot-notifications] [RIOT-OS/RIOT] tests/mtd_raw: add simple test for MTD (#15362)

benpicco notifications at github.com
Thu Jan 7 23:45:57 CET 2021


@benpicco commented on this pull request.



> +        return -1;
+    }
+
+    _print_info(dev);
+
+    return 0;
+}
+
+static int cmd_power(int argc, char **argv)
+{
+    bool oob;
+    mtd_dev_t *dev = _get_dev(argc, argv, &oob);
+    enum mtd_power_state state;
+
+    if (argc < 3) {
+        goto error;

Eh I thought `goto error` was a common pattern.
Anyway, doesn't make much of a difference.

-- 
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/15362#discussion_r553637036
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210107/139d5e83/attachment.htm>


More information about the notifications mailing list