Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: apps/gui/skin_engine/skin_tokens.c
- ===================================================================
- --- apps/gui/skin_engine/skin_tokens.c (revision 26245)
- +++ apps/gui/skin_engine/skin_tokens.c (working copy)
- @@ -417,11 +417,9 @@
- case WPS_TOKEN_TUNER_CURFREQ:
- return format_freq_MHz(radio_current_frequency(),
- region_data->freq_step, buf, buf_size);
- - case WPS_TOKEN_PRESET_ID:
- - snprintf(buf, buf_size, "%d", radio_current_preset() + 1 + preset_offset);
- - return buf;
- case WPS_TOKEN_PRESET_NAME:
- case WPS_TOKEN_PRESET_FREQ:
- + case WPS_TOKEN_PRESET_ID:
- {
- int preset_count = radio_preset_count();
- int cur_preset = radio_current_preset();
- @@ -434,9 +432,11 @@
- preset += preset_count;
- if (token->type == WPS_TOKEN_PRESET_NAME)
- snprintf(buf, buf_size, "%s", radio_get_preset(preset)->name);
- - else
- + else if (token->type == WPS_TOKEN_PRESET_FREQ)
- format_freq_MHz(radio_get_preset(preset)->frequency,
- region_data->freq_step, buf, buf_size);
- + else
- + snprintf(buf, buf_size, "%d", preset + 1;
- return buf;
- }
- case WPS_TOKEN_PRESET_COUNT:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement