reworked the indicator engine to better support patterns

This commit is contained in:
2018-01-02 12:06:22 +01:00
parent c19b185b06
commit 83a01aa1bc
10 changed files with 105 additions and 72 deletions
+2 -2
View File
@@ -112,7 +112,7 @@ error_t stream_open(stream_type_t stream_type)
return E_INTERNAL;
}
StatusLed_On(STATUS_DISK_BUSY);
Indicator_Effect(STATUS_DISK_BUSY);
// TODO create a thread...?
// Initialize all variables
@@ -178,7 +178,7 @@ error_t stream_close(void)
// set only if stream_open has been called
// stream_thread_assert(); // ???
// Close stream
StatusLed_Off(STATUS_DISK_BUSY);
Indicator_Off(STATUS_DISK_BUSY);
status = current_stream->close(&shared_state);
stream_state = STREAM_STATE_CLOSED;
return status;