From 7a149a979d035b523f027d9a38e7551fa2f4738d Mon Sep 17 00:00:00 2001 From: Reed Nightingale Date: Sun, 9 Feb 2020 22:19:54 -0800 Subject: [PATCH] Add some comments to button and move char to the end --- button.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/button.h b/button.h index 97133e1..6f863bd 100644 --- a/button.h +++ b/button.h @@ -10,9 +10,9 @@ enum ButtonStatus_e : uint8_t { struct Button { int16_t x, y, w, h; - const char* text; - void (*text_override)(char* text_out, uint16_t max_text_size); - char morse; - ButtonStatus_e (*status)(); + const char* text;//nullptr if text_override should be used + void (*text_override)(char* text_out, uint16_t max_text_size);//nullptr if text should be used + ButtonStatus_e (*status)();//Used for coloring and morse menu void (*on_select)();//Action to take when selected + char morse; }; \ No newline at end of file