mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-09-20 00:55:58 -04:00
0.1.5 removed const from function headers
This commit is contained in:
parent
335a893f4b
commit
1cc30414fa
@ -1,7 +1,7 @@
|
||||
//
|
||||
// FILE: StopWatch.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.4
|
||||
// VERSION: 0.1.5
|
||||
// PURPOSE: Simple StopWatch library for Arduino
|
||||
//
|
||||
// The library is based upon millis() and therefore
|
||||
@ -14,6 +14,7 @@
|
||||
// 0.1.03 2012-01-22 Added several improvements
|
||||
// By mromani & Rob Tillaart
|
||||
// 0.1.4 2017-07-16 refactored
|
||||
// 0.1.5 2017-09-13 removed const from functions
|
||||
//
|
||||
// Released to the public domain
|
||||
//
|
||||
|
@ -10,7 +10,7 @@
|
||||
// Released to the public domain
|
||||
//
|
||||
|
||||
#define STOPWATCH_LIB_VERSION "0.1.4"
|
||||
#define STOPWATCH_LIB_VERSION "0.1.5"
|
||||
|
||||
#if ARDUINO >= 100
|
||||
#include "Arduino.h"
|
||||
@ -30,11 +30,11 @@ public:
|
||||
void reset();
|
||||
|
||||
uint32_t value();
|
||||
uint32_t elapsed() const { return value(); };
|
||||
uint32_t elapsed() { return value(); };
|
||||
|
||||
bool isRunning() const { return _state == StopWatch::RUNNING; };
|
||||
enum State state() const { return _state; };
|
||||
enum Resolution resolution() const { return _res; };
|
||||
bool isRunning() { return _state == StopWatch::RUNNING; };
|
||||
enum State state() { return _state; };
|
||||
enum Resolution resolution() { return _res; };
|
||||
|
||||
private:
|
||||
enum State _state;
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=StopWatch
|
||||
version=0.1.4
|
||||
version=0.1.5
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Library to implement a stopwatch.
|
||||
|
Loading…
Reference in New Issue
Block a user