From 577d49550348e9b2cec62d7d10b6a8fce144bcdf Mon Sep 17 00:00:00 2001 From: ttytyper Date: Sun, 4 Feb 2018 20:36:03 +0100 Subject: [PATCH 1/2] Remove global variable --- ADXL362.cpp | 4 +--- ADXL362.h | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ADXL362.cpp b/ADXL362.cpp index a6c48ba..6fb89d3 100644 --- a/ADXL362.cpp +++ b/ADXL362.cpp @@ -21,8 +21,6 @@ //#define ADXL362_DEBUG -int16_t slaveSelectPin = 10; - ADXL362::ADXL362() { } @@ -289,4 +287,4 @@ void ADXL362::SPIwriteTwoRegisters(byte regAddress, int16_t twoRegValue){ SPI.transfer(twoRegValueL); SPI.transfer(twoRegValueH); digitalWrite(slaveSelectPin, HIGH); -} \ No newline at end of file +} diff --git a/ADXL362.h b/ADXL362.h index 2873f7f..d5f8f1f 100644 --- a/ADXL362.h +++ b/ADXL362.h @@ -65,8 +65,9 @@ class ADXL362 void SPIwriteTwoRegisters(byte regAddress, int16_t twoRegValue); private: + int16_t slaveSelectPin; }; -#endif \ No newline at end of file +#endif From 02327ff753341e05d9e19d4ee1a368ff82f65470 Mon Sep 17 00:00:00 2001 From: ttytyper Date: Sun, 4 Feb 2018 20:40:18 +0100 Subject: [PATCH 2/2] Remove irrelevant .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100755 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100755 index f775cc904f034564438273a194497b9c38674ad2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5T0$TMpWoU=yCB}q^(LTcnG0_N1=rttY~5i4aBB2DHUooc=2(38=uFS z-3?e8Jc`&E*nG3|v%B*__6GojGxwVSRRFNC5eiZYgv^Dmk_jdhYK$p_FoM`y#M6R- z{-TN2ZsD4rz=cQnwtg>+JoJ5d(=dpWM&nbI%9X9{9SdcDI0z#S3kt>$@Jm&N5>aeefK$idCfG30_j$AU@(U_RMyJz10ne(JPn2{M^2ABb6U^5vo z=Yh4indNiU%m6d+0|T@_NNj|*!AzstI`Bi+XYyAFNl>S^1feu&8_YDK2Sw;qM4c+k z6GP~9v`Z6b8_YE7bP#H09LLO@KVF2I9qm$ugRnL7ml2a7Ui>sonq)=F&m*hnZYBLxNZl}iA2XdkI5r}j(IG0rxaX{1re SuF?_tBA^K24>Rx!4159eu}WP4