Skip to content

Commit

Permalink
Fix wrong order of arguments in MockServo
Browse files Browse the repository at this point in the history
  • Loading branch information
platisd committed Feb 7, 2021
1 parent d61a8a0 commit 6b9af21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/mocks/Servo.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
class MockServo
{
public:
MOCK_METHOD3(attach, void(uint8_t pin, int maxPulseLength, int minPulseLength));
MOCK_METHOD3(attach, void(uint8_t pin, int minPulseLength, int maxPulseLength));
MOCK_METHOD1(writeMicroseconds, void(int microseconds));
};

class Servo
{
public:
void attach(uint8_t pin, int maxPulseLength, int minPulseLength)
void attach(uint8_t pin, int minPulseLength, int maxPulseLength)
{
mMockServo->attach(pin, maxPulseLength, minPulseLength);
mMockServo->attach(pin, minPulseLength, maxPulseLength);
}

void writeMicroseconds(int microseconds)
Expand Down

0 comments on commit 6b9af21

Please sign in to comment.