diff --git a/src/shell.rs b/src/shell.rs index 0bb2c2c10b0f83697e235de7a6e2ce01362e2d2c..eff1587d9ed84f29f0d28a22d4a491372e8c8d99 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(); }