Skip to content

Commit

Permalink
#17 API is now working
Browse files Browse the repository at this point in the history
  • Loading branch information
David032 committed Nov 28, 2023
1 parent f9f9046 commit f3e46cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion skullOS.Modules/Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Camera()

public void TakePicture()
{
logger.LogMessage($"({DateTime.Now}) Picture taken!"); //Maybe think about a better logging solution?
LogMessage($"({DateTime.Now}) Picture taken!");
CameraService.Camera.Capture($"{FileManager.GetSkullDirectory()}/Captures/{DateTime.Now:yyyyMMddHHmmss}.jpg");
}

Expand Down
8 changes: 8 additions & 0 deletions skullOS.Modules/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,13 @@ public void AttachLogger(SkullLogger logger)
{
this.logger = logger;
}

public void LogMessage(string message)
{
if (logger != null)
{
logger.LogMessage(message);
}
}
}
}

0 comments on commit f3e46cf

Please sign in to comment.