diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-02-25 10:17:04 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-02-25 10:17:04 +0100 |
commit | a85a68309b283fc21396915189a41d5dff62777e (patch) | |
tree | 494c87dce20902054c163ea30ead31f0a017abb1 | |
parent | 9cf84961d6d3aecd081271df9925c173d76ccf4b (diff) |
Storage::hasData: Also return false when no animations were saved
-rw-r--r-- | src/storage.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage.cc b/src/storage.cc index b15c55d..517fedf 100644 --- a/src/storage.cc +++ b/src/storage.cc @@ -245,7 +245,7 @@ bool Storage::hasData() // Unprogrammed EEPROM pages always read 0xff if (num_anims == 0xff) return false; - return true; + return num_anims; } // TODO support multi-page reads |