mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-04-04 22:07:33 +00:00
Add slice to DSTAR state machine which allows proper status updates with correct index
This commit is contained in:
parent
1a19337f43
commit
7be0c446d1
5 changed files with 15 additions and 1 deletions
|
|
@ -343,6 +343,12 @@ void sched_waveform_setEndOfTX( BOOL end_of_transmission ) {
|
|||
_end_of_transmission = TRUE;
|
||||
}
|
||||
|
||||
void sched_waveform_setDSTARSlice( uint32 slice )
|
||||
{
|
||||
if ( _dstar != NULL ) {
|
||||
_dstar->slice = slice;
|
||||
}
|
||||
}
|
||||
|
||||
static void * _sched_waveform_thread( void * param ) {
|
||||
int nout;
|
||||
|
|
|
|||
|
|
@ -50,4 +50,5 @@ void sched_waveform_setOwnCall2(uint32 slice , const char * owncall2 );
|
|||
void sched_waveform_sendStatus(uint32 slice);
|
||||
void sched_waveform_setFD(int fd);
|
||||
void sched_waveform_setEndOfTX(BOOL end_of_transmission);
|
||||
void sched_waveform_setDSTARSlice( uint32 slice );
|
||||
#endif /* SCHED_WAVEFORM_H_ */
|
||||
|
|
|
|||
|
|
@ -82,6 +82,9 @@ static void _handle_status(char* string)
|
|||
char cmd[512] = {0};
|
||||
sprintf(cmd, "slice s %d fm_deviation=1250 post_demod_low=0 post_demod_high=6000 dfm_pre_de_emphasis=0 post_demod_bypass=1 squelch=0", slc);
|
||||
tc_sendSmartSDRcommand(cmd,FALSE, NULL);
|
||||
|
||||
sched_waveform_setDSTARSlice(slc);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue