Skip to content

Commit b06d85f

Browse files
committed
Desktop: replace hardcoded values with macros in desktop_view_pin_input.c
1 parent e1edcc0 commit b06d85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/services/desktop/views/desktop_view_pin_input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void desktop_view_pin_input_draw_cells(Canvas* canvas, DesktopViewPinInpu
103103
furi_assert(canvas);
104104
furi_assert(model);
105105

106-
uint8_t draw_pin_size = MAX(4, model->pin.length + 1);
106+
uint8_t draw_pin_size = MAX(MIN_PIN_LENGTH, model->pin.length + 1);
107107
if(model->locked_input || (model->pin.length == MAX_PIN_LENGTH)) {
108108
draw_pin_size = model->pin.length;
109109
}

0 commit comments

Comments
 (0)