0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

add ert command

This commit is contained in:
2025-03-28 21:07:03 +01:00
parent d085c5d2fa
commit 31f111828d
2 changed files with 11 additions and 0 deletions

4
doc.md
View File

@@ -87,6 +87,10 @@ TODO: RTP
Sets the LPS: `LPS=NovaFM❤`
*Note that LPS does UTF-8, while PS, RT don't*
### ERT
TODO: ERT
### PTYN
Sets the programme type name: `PTYN=Football`

View File

@@ -67,6 +67,12 @@ static void handle_lps(char *arg, RDSModulator* mod, char* output) {
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) {
arg[PS_LENGTH * 2] = 0;
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},
{"RTP", handle_rtp, 3},
{"LPS", handle_lps, 3},
{"ERT", handle_ert, 3},
};
static const command_handler_t commands_eq5[] = {