From c585f55e8f8895a87d18a143e3e08505fdbc1b2d Mon Sep 17 00:00:00 2001
From: Stephen D <webmaster@scd31.com>
Date: Wed, 29 Nov 2023 20:38:16 -0400
Subject: [PATCH] basic quicktest command for QA purposes

---
 src/shell.rs | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/shell.rs b/src/shell.rs
index 0bb2c2c..eff1587 100644
--- a/src/shell.rs
+++ b/src/shell.rs
@@ -218,6 +218,24 @@ impl Shell {
 
                             self.config = Config::default();
                         }
+                        // Used for QA only
+                        "quicktest" => {
+                            self.config = Config {
+                                callsign: args.try_into().unwrap(),
+                                icon: 0,
+                                ssid: 255,
+                                max_hops: 0,
+                                comment: ArrayString::from("Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibu").unwrap(),
+                                transmit_period_seconds: 3,
+                                gps: GpsSetting::Receiver,
+                                enable_transmit: true,
+                                enable_digipeating: true,
+                                black_hole: MaybeBlackHole::None,
+                            };
+                            self.config.save_to_flash(flash);
+
+                            write!(ushell, "\r\nOK\r\n").ok();
+                        }
                         "" => {
                             write!(ushell, "\r\n").ok();
                         }
-- 
GitLab