mirror of
https://github.com/AltraMayor/f3.git
synced 2025-09-16 02:25:39 -04:00
f3probe: add a message after the last reset
This message is supposed to help the user to avoid removing the drive after the last reset. After a sequence of manual resets, it's almost automatic to unplug the drive and lose all the save blocks; I've done it myself.
This commit is contained in:
parent
f7ff381eaf
commit
662fbf3db7
@ -398,6 +398,13 @@ static int test_device(struct args *args)
|
||||
assert(!probe_device(dev, &real_size_byte, &announced_size_byte,
|
||||
&wrap, &block_order));
|
||||
assert(!gettimeofday(&t2, NULL));
|
||||
|
||||
if (!args->debug && args->reset_type == RT_MANUAL_USB) {
|
||||
printf("CAUTION\tCAUTION\tCAUTION\n");
|
||||
printf("No more resets are needed, so do not unplug the drive\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
/* Keep free_device() as close of probe_device() as possible to
|
||||
* make sure that the written blocks are recovered when
|
||||
* @args->save is true.
|
||||
|
Loading…
x
Reference in New Issue
Block a user