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

benpicco notifications at github.com
Thu Jan 7 17:01:54 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;

If you think that's nicer - I thought for such a simple function it would be better to have it all contained inside one function.

-- 
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_r553420875
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210107/56686892/attachment-0001.htm>


More information about the notifications mailing list