Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Firmata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,9 @@ void FirmataClass::setPinState(byte pin, int state)
* @param onInterval The number of milliseconds for the LED to be ON during each interval.
* @param offInterval The number of milliseconds for the LED to be OFF during each interval.
*/
void FirmataClass::strobeBlinkPin(byte pin, int count, int onInterval, int offInterval)
void FirmataClass::strobeBlinkPin(byte pin, unsigned int count, uint32_t onInterval, uint32_t offInterval)
{
byte i;
for (i = 0; i < count; i++) {
for (unsigned int i = 0; i < count; ++i) {
delay(offInterval);
digitalWrite(pin, HIGH);
delay(onInterval);
Expand Down
2 changes: 1 addition & 1 deletion Firmata.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class FirmataClass
boolean blinkVersionDisabled;

/* private methods ------------------------------ */
void strobeBlinkPin(byte pin, int count, int onInterval, int offInterval);
void strobeBlinkPin(byte pin, unsigned int count, uint32_t onInterval, uint32_t offInterval);
friend void FirmataMarshaller::encodeByteStream (size_t bytec, uint8_t * bytev, size_t max_bytes) const;

/* callback functions */
Expand Down