Skip to content

Commit 2f81eab

Browse files
authored
Merge pull request #7 from KurtE/remove_warnings
Release 1.4.1 compiler warning correction
2 parents ef29fa0 + a208b42 commit 2f81eab

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/LSS.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
bool LSS::hardwareSerial;
1818
Stream * LSS::bus;
1919
LSS_LastCommStatus LSS::lastCommStatus = LSS_CommStatus_Idle;
20-
long LSS::_msg_char_timeout = LSS_Timeout;
20+
uint32_t LSS::_msg_char_timeout = LSS_Timeout;
2121

2222
//> Command reading/writing
2323
volatile unsigned int LSS::readID; // sscanf - assumes this
@@ -46,7 +46,7 @@ LSS::~LSS(void)
4646

4747
// -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
4848
// Public functions (class) ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
49-
void LSS::setReadTimeouts(long start_response_timeout, long msg_char_timeout)
49+
void LSS::setReadTimeouts(uint32_t start_response_timeout, uint32_t msg_char_timeout)
5050
{
5151
_msg_char_timeout = msg_char_timeout;
5252
bus->setTimeout(start_response_timeout);
@@ -1027,7 +1027,7 @@ bool LSS::getIsMotionControlEnabled(void)
10271027
return (value);
10281028
}
10291029

1030-
int16_t LSS::getFilterPositionCount(LSS_QueryType queryType = LSS_QuerySession) {
1030+
int16_t LSS::getFilterPositionCount(LSS_QueryType queryType) {
10311031
// Variables
10321032
int16_t value = 0;
10331033

src/LSS.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class LSS
240240
{
241241
public:
242242
// Public functions - Class
243-
static void setReadTimeouts(long start_response_timeout=LSS_Timeout, long msg_char_timeout=LSS_Timeout);
243+
static void setReadTimeouts(uint32_t start_response_timeout=LSS_Timeout, uint32_t msg_char_timeout=LSS_Timeout);
244244
static int timedRead(void);
245245
bool charToInt(char * inputstr, int32_t * intnum);
246246
//static void initBus(Stream &, uint32_t);
@@ -346,7 +346,7 @@ class LSS
346346
static LSS_LastCommStatus lastCommStatus;
347347
static volatile unsigned int readID;
348348
static char value[24];
349-
static long _msg_char_timeout; // timeout waiting for characters inside of packet
349+
static uint32_t _msg_char_timeout; // timeout waiting for characters inside of packet
350350
// Private functions - Instance
351351

352352
// Private attributes - Instance

0 commit comments

Comments
 (0)