Skip to content

Commit 92ed309

Browse files
authored
Merge pull request #6 from jalexandre0/fix_saci.run
Bug Fix preventing heat and cool at same time
2 parents 86bad35 + 911e183 commit 92ed309

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [New Release] 2017-02-12
2+
3+
### Changed
4+
- Bug Fix: Fixed a bug where heat and cool can switched on at same time.
5+
16
## [New Release] 2017-02-10
27

38
### Added

src/BangController.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BangController::~BangController() {
2424

2525
void BangController::heat(bool _status) {
2626
if( _status ) {
27+
digitalWrite(coolPin, LOW) ;
2728
digitalWrite(heatPin, HIGH) ;
2829
status = 1 ;
2930
}
@@ -36,6 +37,7 @@ void BangController::heat(bool _status) {
3637

3738
void BangController::cool(bool _status) {
3839
if ( _status ) {
40+
digitalWrite(heatPin, LOW) ;
3941
digitalWrite(coolPin, HIGH) ;
4042
status = 2 ;
4143
}

0 commit comments

Comments
 (0)