Skip to content

Commit

Permalink
Disable DEBUG_ROTARY
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotl committed Sep 17, 2024
1 parent e15f80a commit f44a7bc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Common/Source/Calc/LDRotaryBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
#include "McReady.h"
#include "utils/unique_file_ptr.h"

#define DEBUG_ROTARY
// #define DEBUG_ROTARY

template<typename... Args>
static void Log(const char* fmt, Args&&... args) {
static void Log(const char* fmt, ...) {
#ifdef DEBUG_ROTARY
auto fp = make_unique_file_ptr("Rotary_Debug.TXT", "a");
if (fp) {
fprintf(fp.get(), fmt, std::forward<Args>(args)...);
va_list args;
va_start(args, fmt);
vfprintf(fp.get(), fmt, args);
va_end(args);
}
#endif
}
Expand Down

0 comments on commit f44a7bc

Please sign in to comment.