[bootloader > menus] Improvement

This commit is contained in:
devdl11
2022-04-09 11:02:34 +02:00
parent ff307b8df8
commit eeff886cc1
11 changed files with 50 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
#include <bootloader/utility.h>
#include <string.h>
int Utility::versionSum(const char * version, int length) {
int Bootloader::Utility::versionSum(const char * version, int length) {
int sum = 0;
for (int i = 0; i < length; i++) {
sum += version[i] * (strlen(version) * 100 - i * 10);