HCoop
/
clinton
/
Smoothieware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4826d8
)
file existence check was inverted, resulting in a crash when trying to open on_boot...
author
Arthur Wolf
<wolf.arthur@gmail.com>
Mon, 30 May 2016 18:57:24 +0000
(20:57 +0200)
committer
Arthur Wolf
<wolf.arthur@gmail.com>
Mon, 30 May 2016 18:57:24 +0000
(20:57 +0200)
src/modules/utils/player/Player.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/modules/utils/player/Player.cpp
b/src/modules/utils/player/Player.cpp
index
3a4cdf0
..
fc3681a
100644
(file)
--- a/
src/modules/utils/player/Player.cpp
+++ b/
src/modules/utils/player/Player.cpp
@@
-212,7
+212,7
@@
bool Player::prepare_playing(){
this->current_file_handler = fopen( this->filename.c_str(), "r");
// Check whether that succeeded or not
- bool file_opened = (this->current_file_handler
=
= NULL);
+ bool file_opened = (this->current_file_handler
!
= NULL);
// If the file was open, get it's size
if( file_opened ){