From a85a68309b283fc21396915189a41d5dff62777e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 Feb 2016 10:17:04 +0100 Subject: Storage::hasData: Also return false when no animations were saved --- src/storage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3