Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ataberkylmz committed Jun 22, 2020
1 parent ca3294e commit 707d53f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ataberkylmz/hx711",
"version": "0.0.7",
"version": "0.1.0",
"description": "Less CPU intensive C Driver and Node Binding for HX711 Load Cell Amplifier",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions source/binding.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

class HX711Wrapper : public Napi::ObjectWrap<HX711Wrapper>
{

public:
static void Init(Napi::Env env, Napi::Object exports);
HX711Wrapper(const Napi::CallbackInfo &info);
Expand All @@ -19,7 +18,7 @@ class HX711Wrapper : public Napi::ObjectWrap<HX711Wrapper>
Napi::Value getUnits(const Napi::CallbackInfo &info);
Napi::Value getScale(const Napi::CallbackInfo &info);
Napi::Value getOffset(const Napi::CallbackInfo &info);
Napi::Value getLatestData(const Napi::CallbackInfo &info);

HX711 *mSensor;

};
2 changes: 1 addition & 1 deletion source/hx711.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void HX711::read() {
}
piUnlock(0);
#else
return 0;
this->mLatestData = 0;
#endif
}

Expand Down

0 comments on commit 707d53f

Please sign in to comment.