Fix logging and compiling errors
This commit is contained in:
parent
86a55cf00c
commit
bc40b6e922
@ -1,7 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <magic_enum/magic_enum.hpp>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "wcf.pb.h"
|
||||
|
||||
#include "log.hpp"
|
||||
#include "pb_encode.h"
|
||||
#include "pb_types.h"
|
||||
@ -43,7 +46,7 @@ template <Functions FuncType, typename AssignFunc> bool fill_response(uint8_t *o
|
||||
|
||||
auto it = rpc_function_map.find(FuncType);
|
||||
if (it == rpc_function_map.end()) {
|
||||
LOG_ERROR("Unknown function type: {}", FuncType);
|
||||
LOG_ERROR("Unknown function type: {}", magic_enum::enum_name(rsp.func));
|
||||
return false;
|
||||
}
|
||||
rsp.which_msg = it->second;
|
||||
|
Loading…
Reference in New Issue
Block a user