Skip to content

Commit 47442ec

Browse files
committed
Use uint
1 parent 33af3c0 commit 47442ec

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/IO/ArduinoProxy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ DCMotorState ArduinoProxy::getDCMotorState(int forwardPin, int reversePin)
218218
}
219219
}
220220

221-
int ArduinoProxy::getLoadCellState()
221+
uint32_t ArduinoProxy::getLoadCellState()
222222
{
223223
std::lock_guard<std::mutex> lockGuard(stateMutex);
224224

src/IO/ArduinoProxy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ArduinoProxy : IO
2525
bool getDigitalState(int pin);
2626
int getServoState(int pin);
2727
DCMotorState getDCMotorState(int forwardPin, int reversePin);
28-
int getLoadCellState();
28+
uint32_t getLoadCellState();
2929

3030
ArduinoProxy(ArduinoProxy const &) = delete;
3131
void operator=(ArduinoProxy const &) = delete;
@@ -34,7 +34,7 @@ class ArduinoProxy : IO
3434
std::map<unsigned int, std::pair<bool, std::chrono::time_point<std::chrono::steady_clock>>> digitalStates;
3535
std::map<unsigned int, std::pair<int, std::chrono::time_point<std::chrono::steady_clock>>> servoStates;
3636
std::map<std::pair<unsigned int, unsigned int>, DCMotorState> dcMotorStates;
37-
std::pair<int, std::chrono::time_point<std::chrono::steady_clock>> loadCellState;
37+
std::pair<uint32_t, std::chrono::time_point<std::chrono::steady_clock>> loadCellState;
3838
std::mutex stateMutex;
3939

4040
int fd = 0;

src/IO/gpio/LoadCell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ LoadCell::LoadCell()
2020
#endif
2121
}
2222

23-
int LoadCell::getCurrentState()
23+
uint32_t LoadCell::getCurrentState()
2424
{
2525
#if USE_ARDUINO_PROXY == 1
2626
try

src/IO/gpio/LoadCell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class LoadCell : public IO
1919
public:
2020
LoadCell();
2121

22-
int getCurrentState();
22+
uint32_t getCurrentState();
2323
void run() override;
2424
bool isInitialized() override;
2525

src/data/GpioData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ struct GpioState
1616
std::map<std::string, int> digitalStateMap;
1717
std::map<std::string, int> pwmStateMap;
1818
std::map<std::string, DCMotorState> dcMotorStateMap;
19-
int loadCellState;
19+
uint32_t loadCellState;
2020
};

0 commit comments

Comments
 (0)