Skip to content

Commit

Permalink
Bumped version to 2.3.1 + Added operator bool() for "if(!Serial)..."
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminJo committed Oct 7, 2024
1 parent be803e9 commit ce9e4c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ You must define TINY_SERIAL_INHERIT_FROM_PRINT before including ATtinySerialOut.
<br/>
# Revision History
### Version 2.3.1
- Added operator bool() for "if(!Serial)..."
- Untested support of ATtiny13
### Version 2.3.0
- Support of all ports of ATtiny88 using ATTinyCore numbering scheme.
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/ArminJo/ATtinySerialOut"
},
"version": "2.3.0",
"version": "2.3.1",
"exclude": "pictures",
"authors": {
"name": "Armin Joachimsmeyer",
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=ATtinySerialOut
version=2.3.0
version=2.3.1
author=Armin Joachimsmeyer
maintainer=Armin Joachimsmeyer <armin.arduino@gmail.com>
sentence=Minimal bit-bang send serial 115200 or 38400 baud for 1 MHz or 230400 baud for 8/16 MHz ATtiny clock. Perfect for debugging purposes. Code size is only 76 bytes@38400 baud or 196 bytes@115200 baud (including first call)
Expand Down
10 changes: 5 additions & 5 deletions src/ATtinySerialOut.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* ATtinySerialOut.h
*
* Copyright (C) 2015-2023 Armin Joachimsmeyer
* Copyright (C) 2015-2024 Armin Joachimsmeyer
* Email: armin.joachimsmeyer@gmail.com
*
* This file is part of TinySerialOut https://github.com/ArminJo/ATtinySerialOut.
Expand Down Expand Up @@ -76,10 +76,10 @@
|| defined(__AVR_ATtiny88__)
#include <Arduino.h>

#define VERSION_ATTINY_SERIAL_OUT "2.2.0"
#define VERSION_ATTINY_SERIAL_OUT "2.3.1"
#define VERSION_ATTINY_SERIAL_OUT_MAJOR 2
#define VERSION_ATTINY_SERIAL_OUT_MINOR 2
#define VERSION_ATTINY_SERIAL_OUT_PATCH 0
#define VERSION_ATTINY_SERIAL_OUT_MINOR 3
#define VERSION_ATTINY_SERIAL_OUT_PATCH 1
// The change log is at the bottom of the file

/*
Expand Down Expand Up @@ -195,7 +195,7 @@ class TinySerialOut

// virtual functions of Print class
size_t write(uint8_t aByte);
operator bool(); // To support "while (!Serial); // wait for serial port to connect. Required for Leonardo only
operator bool() { return true; } // To support "while (!Serial); // wait for serial port to connect. Required for Leonardo only

#if !defined(TINY_SERIAL_INHERIT_FROM_PRINT)
void print(const __FlashStringHelper *aStringPtr);
Expand Down

0 comments on commit ce9e4c7

Please # to comment.