mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-20 07:56:50 +00:00
fix: logging & ternary changes
This commit is contained in:
parent
b02e952765
commit
bfc9b7e7fa
3 changed files with 2 additions and 11 deletions
|
|
@ -37,7 +37,7 @@ namespace PepperDash.Essentials.Touchpanel
|
|||
{
|
||||
var theme = content.ToObject<MobileControlSimpleContent<string>>();
|
||||
|
||||
this.LogInformation("Setting theme to {theme}", this, theme.Value);
|
||||
this.LogInformation("Setting theme to {theme}", theme.Value);
|
||||
_tpDevice.UpdateTheme(theme.Value);
|
||||
|
||||
PostStatusMessage(JToken.FromObject(new { theme = theme.Value }), id);
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ namespace PepperDash.Essentials.WebSocketServer
|
|||
{
|
||||
clientId = Id,
|
||||
roomKey = RoomKey,
|
||||
touchpanelKey = string.IsNullOrEmpty(TouchpanelKey) ? string.Empty : TouchpanelKey,
|
||||
touchpanelKey = TouchpanelKey ?? string.Empty,
|
||||
})
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue