diff options
author | ConfuSomu | 2021-03-16 12:33:29 -0400 |
---|---|---|
committer | ConfuSomu | 2021-03-16 12:33:29 -0400 |
commit | 5aa8fc267204835296914360647473e3e93001e6 (patch) | |
tree | 98004d748bce1cd72fd82b5692cc2297b61886d6 /oled/ss_oled.h | |
parent | e864e2efdda9ae977a049bc5491495b421028902 (diff) | |
download | pico-watch-5aa8fc267204835296914360647473e3e93001e6.tar pico-watch-5aa8fc267204835296914360647473e3e93001e6.tar.gz pico-watch-5aa8fc267204835296914360647473e3e93001e6.zip |
Move display of popup in API to generic function
This allows implementing different popup types with more ease.
This new function made me notice that the application's heap (and maybe
stack) usage is high. When testing the updated gui_popup_text method, I
noticed that sometimes, the std::string cannot be allocated.
There are more details in the updated api header file.
Diffstat (limited to 'oled/ss_oled.h')
-rw-r--r-- | oled/ss_oled.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oled/ss_oled.h b/oled/ss_oled.h index fe6f399..78b68d4 100644 --- a/oled/ss_oled.h +++ b/oled/ss_oled.h @@ -129,7 +129,7 @@ void oledSetTextWrap(SSOLED *pOLED, int bWrap); // // Returns 0 for success, -1 for invalid parameter // -int oledWriteString(SSOLED *pOLED, int iScrollX, int x, int y, char *szMsg, int iSize, int bInvert, int bRender); +int oledWriteString(SSOLED *pOLED, int iScrollX, int x, int y, const char *szMsg, int iSize, int bInvert, int bRender); // // Fill the frame buffer with a byte pattern // e.g. all off (0x00) or all on (0xff) |