From 2ce81ed3f2fabc490ce662b0f48113b14abd6e98 Mon Sep 17 00:00:00 2001 From: FUJIURA Toyonori Date: Mon, 21 Mar 2022 08:28:06 +0900 Subject: [PATCH] Debug for using logger. --- src/TaskBeacon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TaskBeacon.cpp b/src/TaskBeacon.cpp index 5e48d72..6f187e9 100644 --- a/src/TaskBeacon.cpp +++ b/src/TaskBeacon.cpp @@ -95,7 +95,7 @@ void BeaconTask::setBeacon(System &system) { } _beaconMsg->getBody()->setData(String("=") + create_lat_aprs(lat) + "L" + create_long_aprs(lng) + "&" + system.getUserConfig()->beacon.message); - system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "[%s]%s", timeString(), _beaconMsg->encode()); + system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "[%s]%s", timeString().c_str(), _beaconMsg->encode().c_str()); if (system.getUserConfig()->aprs_is.active) _toAprsIs.addElement(_beaconMsg);