Skip to content

Commit

Permalink
fix arduino-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed May 27, 2021
1 parent 7272570 commit 0f24b4b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/arduino-lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Arduino-lint

on: [push, pull_request]
jobs:
lint:
Expand Down
5 changes: 5 additions & 0 deletions examples/microSeconds/microSeconds.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
// URL: https://github.com/RobTillaart/timing
//


#include "timing.h"
#include "printHelpers.h" // https://github.com/RobTillaart/printHelpers


void setup()
{
Serial.begin(115200);
Expand All @@ -30,10 +32,12 @@ void setup()
Serial.println("\nDone...");
}


void loop()
{
}


uint64_t fibonaci(uint32_t n)
{
uint64_t p = 0;
Expand All @@ -53,4 +57,5 @@ uint64_t fibonaci(uint32_t n)
return q;
}


// -- END OF FILE --
4 changes: 4 additions & 0 deletions examples/milliSeconds/milliSeconds.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
// URL: https://github.com/RobTillaart/timing
//


#include "timing.h"


void setup()
{
Serial.begin(115200);
Expand Down Expand Up @@ -40,8 +42,10 @@ void setup()
Serial.println("\nDone...");
}


void loop()
{
}


// -- END OF FILE --
7 changes: 6 additions & 1 deletion examples/seconds/seconds.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// URL: https://github.com/RobTillaart/timing
//


#include "timing.h"


Expand All @@ -23,6 +24,7 @@ uint16_t primes[MAXPRIMES];
uint16_t idx = 0;
uint32_t x = 1;


void setup()
{
Serial.begin(115200);
Expand Down Expand Up @@ -52,10 +54,12 @@ void setup()
Serial.println("\nDone...");
}


void loop()
{
}


// sort of sieve.
int nextPrime()
{
Expand All @@ -78,4 +82,5 @@ int nextPrime()
return x;
}

// -- END OF FILE --

// -- END OF FILE --
3 changes: 2 additions & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"type": "git",
"url": "https://github.com/RobTillaart/timing"
},
"version":"0.2.1",
"version": "0.2.2",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*"
}
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name=timing
version=0.2.1
version=0.2.2
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library with wrapper classes for seconds millis micros.
paragraph=These wrappers allow to reset the value of the time.
category=dataprocessing
category=Data Processing
url=https://github.com/RobTillaart/timing
architectures=*
includes=timing.h
Expand Down
7 changes: 5 additions & 2 deletions timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// FILE: timing.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.0
// VERSION: 0.2.2
// PURPOSE: Arduino library with wrapper classes for seconds millis micros
// URL: https://github.com/RobTillaart/timing
//
Expand All @@ -12,9 +12,11 @@
// 0.1.02 2015-03-02 move all to mymillis.h file so compiler can optimize
// 0.2.0 2020-07-07 renamed to timing.h
// 0.2.1 2021-01-09 added Arduino-CI + unit test
// 0.2.1 2021-05-27 added Arduino-lint


#define TIMING_LIB_VERSION (F("0.2.1"))
#define TIMING_LIB_VERSION (F("0.2.2"))


class microSeconds
{
Expand Down Expand Up @@ -54,4 +56,5 @@ class seconds
uint32_t _offset = 0UL;
};


// -- END OF FILE --

0 comments on commit 0f24b4b

Please sign in to comment.