From 07e201e3d41475e0077c928b41c759fa074a6946 Mon Sep 17 00:00:00 2001 From: Colin Cai Date: Sat, 18 May 2024 12:07:19 -0400 Subject: [PATCH] ravedude: add comments for possibly confusing code --- ravedude/src/config.rs | 2 ++ ravedude/src/main.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ravedude/src/config.rs b/ravedude/src/config.rs index 94a795ba74..d83403ac50 100644 --- a/ravedude/src/config.rs +++ b/ravedude/src/config.rs @@ -134,6 +134,8 @@ pub struct BoardAvrdudeOptions { serialize_with = "serialize_baudrate", deserialize_with = "deserialize_baudrate" )] + // Inner option to represent whether the baudrate exists, outer option to allow for overriding. + // Option pub baudrate: Option>, pub do_chip_erase: Option, } diff --git a/ravedude/src/main.rs b/ravedude/src/main.rs index 1f082b36a5..e6f7d3de35 100644 --- a/ravedude/src/main.rs +++ b/ravedude/src/main.rs @@ -79,6 +79,8 @@ struct Args { /// * nano168 /// * duemilanove #[structopt(name = "BOARD", verbatim_doc_comment)] + // When Ravedude.toml exists, the binary is placed where the board should be. This is an OsString to not lose + // informaton when we have to take the board as the binary. board: Option, /// The binary to be flashed.