Skip to content

Commit c67f0e3

Browse files
garrettsummerfi3ldqwertychouskie
authored andcommitted
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.
1 parent 8230825 commit c67f0e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/canWrapper.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,3 +768,11 @@ void setSparkMaxHeartbeatData(const Napi::CallbackInfo& info) {
768768
}
769769
}
770770

771+
/**
772+
* This function was removed from commit b0ca096624286b1e975eaaa816e38599933b7e84, which broke MSVC builds.
773+
* It has been re-added here to fix the build.
774+
*/
775+
void stopHeartbeats(const Napi::CallbackInfo& info) {
776+
//! TODO: Reimplement this function with current codebase
777+
Napi::Env env = info.Env();
778+
}

0 commit comments

Comments
 (0)