Skip to content

Commit 4bb58ca

Browse files
committed
add ctor that includes cs pin as arg
1 parent 37b2d5a commit 4bb58ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sfeTkArdSPI.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ class sfeTkArdSPI : public sfeTkISPI
3939
/*
4040
@brief Constructor
4141
*/
42-
sfeTkArdSPI(void) : _spiPort(nullptr){};
42+
sfeTkArdSPI(void) : _spiPort(nullptr)
43+
{
44+
}
4345

46+
sfeTkArdSPI(uint8_t csPin) : sfeTkISPI(csPin)
47+
{
48+
}
4449
// copy constructor
4550
sfeTkArdSPI(sfeTkArdSPI const &rhs) : sfeTkISPI(), _spiPort{rhs._spiPort}, _sfeSPISettings{rhs._sfeSPISettings}
4651
{

0 commit comments

Comments
 (0)