diff --git a/include/WindComp.h b/include/WindComp.h index c25fc51..26f07a3 100644 --- a/include/WindComp.h +++ b/include/WindComp.h @@ -24,6 +24,7 @@ #define WindComp_GT_NUM(val1, val2) *(double*)(val1) > *(double*)(val2) unsigned char* WindComp_begin(void); +unsigned char* WindComp_ptr(void); const unsigned char* WindComp_end(void); unsigned WindComp_get_len(void); diff --git a/src/flow/WindComp.c b/src/flow/WindComp.c index af11afa..4af5c25 100644 --- a/src/flow/WindComp.c +++ b/src/flow/WindComp.c @@ -15,6 +15,11 @@ unsigned char* WindComp_begin(void) return WindComp_BUF; } +unsigned char* WindComp_ptr(void) +{ + return WindComp_BUF + WindComp_ITEM_LEN; +} + const unsigned char* WindComp_end(void) { return WindComp_END; diff --git a/src/util/IOUtil.c b/src/util/IOUtil.c index cbd2ae8..b6aa617 100644 --- a/src/util/IOUtil.c +++ b/src/util/IOUtil.c @@ -87,7 +87,7 @@ void IOUtil_debug(void) WindState_print_mode(); printf("\nCommand: "); WindState_print_cmd(); - puts("\n..........Data........."); + puts("\n\n..........Data........."); printf("Load Buffer: -> [ "); IOUtil_print(WindData_load_begin(), WindData_load_ptr()); printf("]\n"); @@ -97,6 +97,10 @@ void IOUtil_debug(void) printf("Inactive Buffer: -> [ "); IOUtil_print(WindData_inactive_begin(), WindData_inactive_ptr()); printf("]\n"); + puts("\n..........Computation........."); + printf("Comp Buffer: -> [ "); + IOUtil_print(WindComp_begin(), WindComp_ptr()); + printf("]\n"); puts("________________________"); }