0.1.5 removed const from function headers

This commit is contained in:
RobTillaart 2017-09-13 08:08:11 +02:00
parent 335a893f4b
commit 1cc30414fa
3 changed files with 8 additions and 7 deletions

View File

@ -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
//

View File

@ -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;

View File

@ -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.