Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static const char* formatter_setting(char *buffer, size_t buffer_size,
- int val, const char *unit)
- {
- (void) buffer_size;
- (void) unit;
- if (val <= 0 || EXTERNAL == true)
- return str(LANG_OFF);
- return buffer;
- }
- //you will need to send the setting to callbackFN OR handle the logic elsewhere
- /*#define INT_SETTING_NOWRAP(flags, var, lang_id, default, name,
- unit, min, max, step, formatter, get_talk_id, cb)*/
- INT_SETTING(flags,&global_settings.var , LANG_ID, default,
- "setting name", UNIT_INT, -1,1,1,
- formatter_setting, GETTALKfn[NULL],CALLBACKfn[NULL}),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement