ssdv delete image after send

master
Michal Fratczak 2020-04-10 00:53:00 +02:00
rodzic e83f820d2e
commit 2be53f1198
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -227,6 +227,9 @@ int main1(int argc, char** argv)
if( ssdv_data.size() )
{
const ssdv_t::tile_t tile = ssdv_data.next_tile();
// delete image after send
if(!ssdv_data.size())
system( (string("rm -f ") + G.cli.ssdv_image).c_str() );
mtx2_write( radio_fd, tile.data(), sizeof(tile) );
}
}