Skip to content

Commit bd7d98d

Browse files
authored
Merge pull request #1 from rzeldent/feature/multiple_subscribers
Feature/multiple subscribers
2 parents 0029d77 + 544991b commit bd7d98d

112 files changed

Lines changed: 672 additions & 402 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Platform IO CI
2+
on: [push]
3+
jobs:
4+
build:
5+
name: Build
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
pio-env: ['esp12e', 'esp32dev']
10+
example: ['Blink/Blink.cpp', 'Do/Do.cpp', 'FromArray/FromArray.cpp', 'FromProperty/FromProperty.cpp', 'FromSerialPort/FromSerialPort.cpp', 'FromString/FromString.cpp', 'GlobalDefined/GlobalDefined.cpp', 'Reduce/Reduce.cpp']
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.x'
17+
architecture: 'x64'
18+
- name: Install PlatformIO
19+
run: python -m pip install platformio
20+
- name: Build firmware
21+
run: pio ci --lib="." --board ${{matrix.pio-env}} "examples/${{matrix.example}}"
File renamed without changes.
File renamed without changes.

src/Aggregates/AggregateAll.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ class AggregateAll : public Operator<T, bool>
2727
template <typename T>
2828
AggregateAll<T>::AggregateAll(ReactivePredicate<T> condition)
2929
{
30-
this->_condition = condition;
30+
_condition = condition;
3131
}
3232

3333
template <typename T>
3434
void AggregateAll<T>::OnNext(T value)
3535
{
36-
if (this->_state && this->_condition(value)) this->_state = false;
36+
if (_state && _condition(value)) _state = false;
3737

38-
this->_childObserver->OnNext(_state);
38+
this->_childObservers.OnNext(_state);
3939
}
4040

4141
#endif

0 commit comments

Comments
 (0)