Skip to content

Commit

Permalink
bump to 2.0.1 and add version call to unit test
Browse files Browse the repository at this point in the history
unit test now also checks EMUCAN_LIB_VERSION
bump to version 2.0.1
  • Loading branch information
designer2k2 authored Jan 15, 2023
1 parent 33a03a1 commit 6359d51
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions extras/WProgram.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@
unsigned long millis();

void initialize_mock_arduino();

#define F(string_literal) (string_literal)
3 changes: 3 additions & 0 deletions extras/runtests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ void run_tests() {
// Init the library:
EMUcan emucan(0x600);

// Print the library version:
cout << "EMUcan version: " << EMUCAN_LIB_VERSION << endl;

// Check if the init was ok, status has to be fresh:
if (emucan.EMUcan_Status() == EMUcan_FRESH) {
cout << "EMUcan init ok" << endl;
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/designer2k2/EMUcan"
},
"version": "2.0.0",
"version": "2.0.1",
"license": "GPL-3.0-only",
"frameworks": "arduino",
"platforms": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EMUcan
version=2.0.0
version=2.0.1
author=Stephan M. <[email protected]>
maintainer=Stephan M. <[email protected]>
sentence=ECUMaster EMU CAN Stream Reader Arduino Library
Expand Down
2 changes: 1 addition & 1 deletion src/EMUcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef _EMUcan_h
#define _EMUcan_h

#define EMUCAN_LIB_VERSION (F("2.0.0"))
#define EMUCAN_LIB_VERSION (F("2.0.1"))

// Available data
struct emu_data_t {
Expand Down

0 comments on commit 6359d51

Please sign in to comment.