mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-16 05:32:16 -04:00
OutputStream (file M0 -> M4 radio) now works
Disabled numbers station for now (too buggy, low priority)
This commit is contained in:
parent
c922a56b6d
commit
33a2df9d2a
15 changed files with 48 additions and 30 deletions
|
@ -83,13 +83,17 @@ Optional<File::Error> ReplayThread::run() {
|
|||
|
||||
while( !chThdShouldTerminate() ) {
|
||||
auto buffer = buffers.get();
|
||||
/*auto read_result = reader->read(buffer->data(), buffer->size());
|
||||
|
||||
auto read_result = reader->read(buffer->data(), buffer->capacity());
|
||||
buffer->set_size(buffer->capacity());
|
||||
if( read_result.is_error() ) {
|
||||
return read_result.error();
|
||||
}
|
||||
buffers.put(buffer);*/
|
||||
chThdSleep(50); // DEBUG
|
||||
//led_tx.toggle();
|
||||
|
||||
if (!buffers.put(buffer))
|
||||
for(;;){}; // DEBUG
|
||||
|
||||
led_tx.toggle(); // DEBUG
|
||||
}
|
||||
|
||||
return { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue