new: ble, can, hid and wifi modules will now set a custom prompt (closes #1117)

This commit is contained in:
Simone Margaritelli 2024-08-17 12:10:38 +02:00
commit 6282fe3451
7 changed files with 80 additions and 36 deletions

View file

@ -237,6 +237,8 @@ func (mod *HIDRecon) forceStop() error {
})
}
func (mod *HIDRecon) Stop() error {
mod.SetPrompt(session.DefaultPrompt)
return mod.SetRunning(false, func() {
mod.waitGroup.Wait()
if mod.dongle != nil {