fix red led recording state

This commit is contained in:
martii
2012-11-03 18:48:33 +01:00
parent 241de088cb
commit 2f886cae89
2 changed files with 7 additions and 0 deletions

View File

@@ -406,8 +406,12 @@ void cRecord::RecordThread()
int cRecord::GetStatus() int cRecord::GetStatus()
{ {
#ifdef MARTII
return (exit_flag == RECORD_STOPPED) ? REC_STATUS_STOPPED : REC_STATUS_OK;
#else
/* dummy for now */ /* dummy for now */
return REC_STATUS_OK; return REC_STATUS_OK;
#endif
} }
void cRecord::ResetStatus() void cRecord::ResetStatus()

View File

@@ -7,6 +7,9 @@
#define REC_STATUS_OK 0 #define REC_STATUS_OK 0
#define REC_STATUS_SLOW 1 #define REC_STATUS_SLOW 1
#define REC_STATUS_OVERFLOW 2 #define REC_STATUS_OVERFLOW 2
#ifdef MARTII
#define REC_STATUS_STOPPED 4
#endif
typedef enum { typedef enum {
RECORD_RUNNING, RECORD_RUNNING,