Skip to content

Commit e12d238

Browse files
committed
chore: add logging template to mount
Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
1 parent 3da0796 commit e12d238

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

app/include/mount/Mount.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef OPEN_ASTRO_FIRMWARE_MOUNT_MOUNT_HPP
2+
#define OPEN_ASTRO_FIRMWARE_MOUNT_MOUNT_HPP
23

34
#include <inttypes.h>
45

@@ -35,3 +36,5 @@ class Mount
3536
*/
3637
bool setTargetRa(unsigned int h, unsigned int m, unsigned int s);
3738
};
39+
40+
#endif

app/src/mount/Kconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ config MOUNT_THREAD_STACK_SIZE
77
The size of the stack used by the mount thread.
88
The default value is 0x4000 bytes (16kB).
99

10-
endmenu
10+
module = MOUNT
11+
module-str = mount
12+
source "subsys/logging/Kconfig.template.log_config"
13+
14+
endmenu

app/src/mount/Mount.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <zephyr/kernel.h>
44
#include <zephyr/logging/log.h>
5-
LOG_MODULE_REGISTER(Mount);
5+
LOG_MODULE_REGISTER(Mount, CONFIG_MOUNT_LOG_LEVEL);
66

77
Mount::Mount() {
88
LOG_DBG("creating Mount");

0 commit comments

Comments
 (0)