mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 04:43:52 +01:00
add ert command
This commit is contained in:
4
doc.md
4
doc.md
@@ -87,6 +87,10 @@ TODO: RTP
|
|||||||
Sets the LPS: `LPS=NovaFM❤️`
|
Sets the LPS: `LPS=NovaFM❤️`
|
||||||
*Note that LPS does UTF-8, while PS, RT don't*
|
*Note that LPS does UTF-8, while PS, RT don't*
|
||||||
|
|
||||||
|
### ERT
|
||||||
|
|
||||||
|
TODO: ERT
|
||||||
|
|
||||||
### PTYN
|
### PTYN
|
||||||
|
|
||||||
Sets the programme type name: `PTYN=Football`
|
Sets the programme type name: `PTYN=Football`
|
||||||
|
|||||||
@@ -67,6 +67,12 @@ static void handle_lps(char *arg, RDSModulator* mod, char* output) {
|
|||||||
strcpy(output, "+\0");
|
strcpy(output, "+\0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void handle_ert(char *arg, RDSModulator* mod, char* output) {
|
||||||
|
arg[EPS_LENGTH * 2] = 0;
|
||||||
|
set_rds_ert(mod->enc, arg);
|
||||||
|
strcpy(output, "+\0");
|
||||||
|
}
|
||||||
|
|
||||||
static void handle_ps(char *arg, RDSModulator* mod, char* output) {
|
static void handle_ps(char *arg, RDSModulator* mod, char* output) {
|
||||||
arg[PS_LENGTH * 2] = 0;
|
arg[PS_LENGTH * 2] = 0;
|
||||||
set_rds_ps(mod->enc, convert_to_rds_charset(arg));
|
set_rds_ps(mod->enc, convert_to_rds_charset(arg));
|
||||||
@@ -415,6 +421,7 @@ static const command_handler_t commands_eq4[] = {
|
|||||||
{"ECC", handle_ecc, 3},
|
{"ECC", handle_ecc, 3},
|
||||||
{"RTP", handle_rtp, 3},
|
{"RTP", handle_rtp, 3},
|
||||||
{"LPS", handle_lps, 3},
|
{"LPS", handle_lps, 3},
|
||||||
|
{"ERT", handle_ert, 3},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const command_handler_t commands_eq5[] = {
|
static const command_handler_t commands_eq5[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user