[Review] Class to namespace

This commit is contained in:
devdl11
2022-04-08 14:01:55 +02:00
parent ff40b8b862
commit 3c26035feb
6 changed files with 12 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#include <bootloader/utility.h>
#include <string.h>
int Bootloader::Utility::versionSum(const char * version, int length) {
int 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);