Fix string lengths to fit one line

Signed-off-by: Markus Birth <markus@birth-online.de>
This commit is contained in:
2026-08-15 01:21:12 +01:00
parent 58edc59ae6
commit b7fc06ce5b
+11 -4
View File
@@ -44,17 +44,17 @@ void sonicare_scene_read_complete_on_enter(void* context) {
const uint8_t brush_id = ul_data->page[0x1f].data[2]; const uint8_t brush_id = ul_data->page[0x1f].data[2];
const char* brush_names[] = { const char* brush_names[] = {
"Unknown brush: 0x00", "Unknown brush: 0x00",
"Prem. Plaque Defence, Wt", "Prem. Plaque Def., Wt",
"Prem. Plaque Defence, Bk", "Prem. Plaque Defence, B",
"Premium Gum Care, Wt", "Premium Gum Care, Wt",
"Premium Gum Care, Bk", "Premium Gum Care, Bk",
"Premium White, White", "Premium White, White",
"Premium White, Black", "Premium White, Black",
"Optimal Plaque Defence, W", "Opt. Plaque Defence, Wt",
"Optimal Gum Care, Wt", // 0x08 "Optimal Gum Care, Wt", // 0x08
"Optimal White, White", "Optimal White, White",
"Optimal White, Black", "Optimal White, Black",
"Optimal White (small), W", "Opt. White (small), Wt",
"InterCare, White", "InterCare, White",
"InterCare (small), Wt", "InterCare (small), Wt",
"TongueCare+, White", "TongueCare+, White",
@@ -69,6 +69,13 @@ void sonicare_scene_read_complete_on_enter(void* context) {
}; };
int brush_names_max = sizeof(brush_names)/sizeof(brush_names[0]); int brush_names_max = sizeof(brush_names)/sizeof(brush_names[0]);
/* DEBUG STRING LENGTHS
for (int i=0; i<brush_names_max; i++) {
furi_string_cat_printf(temp_str, "\e#%s\n", brush_names[i]);
}
*/
if (brush_id < brush_names_max) { if (brush_id < brush_names_max) {
furi_string_cat_printf(temp_str, "\e#%s\n", brush_names[brush_id]); furi_string_cat_printf(temp_str, "\e#%s\n", brush_names[brush_id]);
} else { } else {