From c67f0e385335d6dfe00798306c821a95cb3ff49f Mon Sep 17 00:00:00 2001 From: Garrett Summerfield Date: Sun, 30 Jun 2024 21:46:01 -0500 Subject: [PATCH] fix: Reimplement stopHeartbeats function to fix MSVC builds The stopHeartbeats function was removed in a previous commit, which caused MSVC builds to break. This commit re-adds the function to fix the build. The function will need to be reimplemented with the current codebase, as of right now this does nothing. --- src/canWrapper.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/canWrapper.cc b/src/canWrapper.cc index 2eb3645..a499d05 100644 --- a/src/canWrapper.cc +++ b/src/canWrapper.cc @@ -768,3 +768,11 @@ void setSparkMaxHeartbeatData(const Napi::CallbackInfo& info) { } } +/** + * This function was removed from commit b0ca096624286b1e975eaaa816e38599933b7e84, which broke MSVC builds. + * It has been re-added here to fix the build. + */ +void stopHeartbeats(const Napi::CallbackInfo& info) { + //! TODO: Reimplement this function with current codebase + Napi::Env env = info.Env(); +} \ No newline at end of file