mirror of https://github.com/nirenjan/libx52.git
Ignore changes to clock settings if clock is disabled
parent
2290900da6
commit
0f83cd5a95
|
@ -111,10 +111,12 @@ cleanup:
|
|||
|
||||
static void set_clock_offset(libx52_clock_id id, const char *param)
|
||||
{
|
||||
if (clock_enabled) {
|
||||
PINELOG_DEBUG(_("Setting %s clock timezone to %s"),
|
||||
libx52_clock_id_to_str(id), param);
|
||||
x52d_dev_set_clock_timezone(id, get_tz_offset(param));
|
||||
}
|
||||
}
|
||||
|
||||
void x52d_cfg_set_Clock_Secondary(char* param)
|
||||
{
|
||||
|
@ -128,10 +130,12 @@ void x52d_cfg_set_Clock_Tertiary(char* param)
|
|||
|
||||
static void set_clock_format(libx52_clock_id id, libx52_clock_format fmt)
|
||||
{
|
||||
if (clock_enabled) {
|
||||
PINELOG_DEBUG(_("Setting %s clock format to %s"),
|
||||
libx52_clock_id_to_str(id), libx52_clock_format_to_str(fmt));
|
||||
x52d_dev_set_clock_format(id, fmt);
|
||||
}
|
||||
}
|
||||
|
||||
void x52d_cfg_set_Clock_FormatPrimary(libx52_clock_format fmt)
|
||||
{
|
||||
|
@ -150,9 +154,11 @@ void x52d_cfg_set_Clock_FormatTertiary(libx52_clock_format fmt)
|
|||
|
||||
void x52d_cfg_set_Clock_DateFormat(libx52_date_format fmt)
|
||||
{
|
||||
if (clock_enabled) {
|
||||
PINELOG_DEBUG(_("Setting date format to %s"), libx52_date_format_to_str(fmt));
|
||||
x52d_dev_set_date_format(fmt);
|
||||
}
|
||||
}
|
||||
|
||||
static pthread_t clock_thr;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: x52pro-linux 0.2.2\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nirenjan/x52pro-linux/issues\n"
|
||||
"POT-Creation-Date: 2021-08-30 11:52-0700\n"
|
||||
"POT-Creation-Date: 2021-08-30 11:59-0700\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -574,7 +574,7 @@ msgstr ""
|
|||
msgid "Setting clock enable to %s"
|
||||
msgstr ""
|
||||
|
||||
#: daemon/x52d_clock.c:34 daemon/x52d_clock.c:114
|
||||
#: daemon/x52d_clock.c:34 daemon/x52d_clock.c:115
|
||||
#, c-format
|
||||
msgid "Setting %s clock timezone to %s"
|
||||
msgstr ""
|
||||
|
@ -595,31 +595,31 @@ msgstr ""
|
|||
msgid "Unable to backup timezone environment. Falling back to UTC"
|
||||
msgstr ""
|
||||
|
||||
#: daemon/x52d_clock.c:131
|
||||
#: daemon/x52d_clock.c:134
|
||||
#, c-format
|
||||
msgid "Setting %s clock format to %s"
|
||||
msgstr ""
|
||||
|
||||
#: daemon/x52d_clock.c:153
|
||||
#: daemon/x52d_clock.c:158
|
||||
#, c-format
|
||||
msgid "Setting date format to %s"
|
||||
msgstr ""
|
||||
|
||||
#: daemon/x52d_clock.c:163
|
||||
#: daemon/x52d_clock.c:169
|
||||
msgid "Starting X52 clock manager thread"
|
||||
msgstr ""
|
||||
|
||||
#: daemon/x52d_clock.c:174
|
||||
#: daemon/x52d_clock.c:180
|
||||
#, c-format
|
||||
msgid "Error %d retrieving current time: %s"
|
||||
msgstr ""
|
||||
|
||||
#: daemon/x52d_clock.c:195
|
||||
#: daemon/x52d_clock.c:201
|
||||
#, c-format
|
||||
msgid "Error %d initializing clock thread: %s"
|
||||
msgstr ""
|
||||
|
||||
#: daemon/x52d_clock.c:202
|
||||
#: daemon/x52d_clock.c:208
|
||||
msgid "Shutting down X52 clock manager thread"
|
||||
msgstr ""
|
||||
|
||||
|
|
16
po/xx_PL.po
16
po/xx_PL.po
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: x52pro-linux 0.2.1\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nirenjan/x52pro-linux/issues\n"
|
||||
"POT-Creation-Date: 2021-08-30 11:52-0700\n"
|
||||
"POT-Creation-Date: 2021-08-30 11:59-0700\n"
|
||||
"PO-Revision-Date: 2021-08-30 10:41-0700\n"
|
||||
"Last-Translator: Nirenjan Krishnan <nirenjan@gmail.com>\n"
|
||||
"Language-Team: Dummy Language for testing i18n\n"
|
||||
|
@ -620,7 +620,7 @@ msgstr "Uttingshay ownday X52 aemonday"
|
|||
msgid "Setting clock enable to %s"
|
||||
msgstr "Ettingsay ockclay enableay otay %s"
|
||||
|
||||
#: daemon/x52d_clock.c:34 daemon/x52d_clock.c:114
|
||||
#: daemon/x52d_clock.c:34 daemon/x52d_clock.c:115
|
||||
#, c-format
|
||||
msgid "Setting %s clock timezone to %s"
|
||||
msgstr "Ettingsay %s ockclay imezonetay otay %s"
|
||||
|
@ -644,31 +644,31 @@ msgid "Unable to backup timezone environment. Falling back to UTC"
|
|||
msgstr ""
|
||||
"Unableay otay ackupbay imezonetay environmentay. Allingfay ackbay otay UTCay"
|
||||
|
||||
#: daemon/x52d_clock.c:131
|
||||
#: daemon/x52d_clock.c:134
|
||||
#, c-format
|
||||
msgid "Setting %s clock format to %s"
|
||||
msgstr "Ettingsay %s ockclay ormatfay otay %s"
|
||||
|
||||
#: daemon/x52d_clock.c:153
|
||||
#: daemon/x52d_clock.c:158
|
||||
#, c-format
|
||||
msgid "Setting date format to %s"
|
||||
msgstr "Ettingsay ateday ormatfay otay %s"
|
||||
|
||||
#: daemon/x52d_clock.c:163
|
||||
#: daemon/x52d_clock.c:169
|
||||
msgid "Starting X52 clock manager thread"
|
||||
msgstr "Artingstay X52 ockclay anagermay eadthray"
|
||||
|
||||
#: daemon/x52d_clock.c:174
|
||||
#: daemon/x52d_clock.c:180
|
||||
#, c-format
|
||||
msgid "Error %d retrieving current time: %s"
|
||||
msgstr "Erroray %d etrievingray urrentcay imetay: %s"
|
||||
|
||||
#: daemon/x52d_clock.c:195
|
||||
#: daemon/x52d_clock.c:201
|
||||
#, c-format
|
||||
msgid "Error %d initializing clock thread: %s"
|
||||
msgstr "Erroray %d initializingay ockclay eadthray: %s"
|
||||
|
||||
#: daemon/x52d_clock.c:202
|
||||
#: daemon/x52d_clock.c:208
|
||||
msgid "Shutting down X52 clock manager thread"
|
||||
msgstr "Uttingshay ownday X52 ockclay anagermay eadthray"
|
||||
|
||||
|
|
Loading…
Reference in New Issue