mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-04-16 10:51:27 +00:00
Use sequential file naming for baseband capture files.
This commit is contained in:
parent
9d635b3fcf
commit
f38fca168e
@ -24,6 +24,8 @@
|
|||||||
#include "portapack.hpp"
|
#include "portapack.hpp"
|
||||||
using namespace portapack;
|
using namespace portapack;
|
||||||
|
|
||||||
|
#include "file.hpp"
|
||||||
|
|
||||||
#include "utility.hpp"
|
#include "utility.hpp"
|
||||||
|
|
||||||
namespace ui {
|
namespace ui {
|
||||||
@ -103,7 +105,12 @@ void CaptureAppView::on_start_stop() {
|
|||||||
capture_thread.reset();
|
capture_thread.reset();
|
||||||
button_start_stop.set_bitmap(&bitmap_record);
|
button_start_stop.set_bitmap(&bitmap_record);
|
||||||
} else {
|
} else {
|
||||||
capture_thread = std::make_unique<AudioThread>("baseband.c16");
|
const auto filename = next_filename_matching_pattern("BBD_????.C16");
|
||||||
|
if( filename.empty() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
capture_thread = std::make_unique<AudioThread>(filename);
|
||||||
button_start_stop.set_bitmap(&bitmap_stop);
|
button_start_stop.set_bitmap(&bitmap_stop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user