lf tune - added possiblity to get bar / mix / value (defaul) output of measurements. Also set in preferences

This commit is contained in:
iceman1001
2020-12-21 01:45:03 +01:00
parent e85edbcef2
commit feeb32b13f
6 changed files with 261 additions and 63 deletions

View File

@@ -22,6 +22,7 @@ extern "C" {
#define _USE_MATH_DEFINES
typedef enum {STYLE_BAR, STYLE_MIXED, STYLE_VALUE} barMode_t;
typedef enum logLevel {NORMAL, SUCCESS, INFO, FAILED, WARNING, ERR, DEBUG, INPLACE, HINT} logLevel_t;
typedef enum emojiMode {ALIAS, EMOJI, ALTTEXT, ERASE} emojiMode_t;
typedef enum clientdebugLevel {cdbOFF, cdbSIMPLE, cdbFULL} clientdebugLevel_t;
@@ -45,6 +46,7 @@ typedef struct {
bool incognito;
// char *defaultPaths[spItemCount]; // Array should allow loop searching for files
clientdebugLevel_t client_debug_level;
barMode_t bar_mode;
// uint8_t device_debug_level;
char *history_path;
pm3_device *current_device;
@@ -69,6 +71,8 @@ int searchHomeFilePath(char **foundpath, const char *subdir, const char *filenam
extern pthread_mutex_t print_lock;
void print_progress(size_t count, uint64_t max, barMode_t style);
void iceIIR_Butterworth(int *data, const size_t len);
void iceSimple_Filter(int *data, const size_t len, uint8_t k);
#ifdef __cplusplus