OutputStream (file M0 -> M4 radio) now works

Disabled numbers station for now (too buggy, low priority)
This commit is contained in:
furrtek 2017-06-23 08:40:22 +01:00
parent c922a56b6d
commit 33a2df9d2a
15 changed files with 48 additions and 30 deletions

View file

@ -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 { };