From a6aa441edc780315a034fea3e1ffb123c32b8af2 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Mon, 25 Mar 2024 23:20:48 +0300 Subject: [PATCH] add missing void --- targets/f7/furi_hal/furi_hal_region.c | 6 +++--- targets/f7/furi_hal/furi_hal_version.c | 12 ++++++------ targets/furi_hal_include/furi_hal_version.h | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/targets/f7/furi_hal/furi_hal_region.c b/targets/f7/furi_hal/furi_hal_region.c index 0f0cb855c..c8af57a19 100644 --- a/targets/f7/furi_hal/furi_hal_region.c +++ b/targets/f7/furi_hal/furi_hal_region.c @@ -15,7 +15,7 @@ const FuriHalRegion furi_hal_region_zero = { static const FuriHalRegion* furi_hal_region = NULL; -const FuriHalRegion* furi_hal_region_get() { +const FuriHalRegion* furi_hal_region_get(void) { return &furi_hal_region_zero; } @@ -44,10 +44,10 @@ bool furi_hal_region_is_frequency_allowed(uint32_t frequency) { return true; } -bool furi_hal_region_is_provisioned() { +bool furi_hal_region_is_provisioned(void) { return true; } -const char* furi_hal_region_get_name() { +const char* furi_hal_region_get_name(void) { return "00"; } diff --git a/targets/f7/furi_hal/furi_hal_version.c b/targets/f7/furi_hal/furi_hal_version.c index b0da5f4b1..06e908f11 100644 --- a/targets/f7/furi_hal/furi_hal_version.c +++ b/targets/f7/furi_hal/furi_hal_version.c @@ -258,19 +258,19 @@ uint8_t furi_hal_version_get_hw_connect(void) { return furi_hal_version.board_connect; } -FuriHalVersionRegion furi_hal_version_get_hw_region() { +FuriHalVersionRegion furi_hal_version_get_hw_region(void) { return FuriHalVersionRegionUnknown; } -FuriHalVersionRegion furi_hal_version_get_hw_region_otp() { +FuriHalVersionRegion furi_hal_version_get_hw_region_otp(void) { return furi_hal_version.board_region; } -const char* furi_hal_version_get_hw_region_name() { +const char* furi_hal_version_get_hw_region_name(void) { return "R00"; } -const char* furi_hal_version_get_hw_region_name_otp() { +const char* furi_hal_version_get_hw_region_name_otp(void) { switch(furi_hal_version_get_hw_region_otp()) { case FuriHalVersionRegionUnknown: return "R00"; @@ -318,11 +318,11 @@ size_t furi_hal_version_uid_size(void) { return 64 / 8; } -const uint8_t* furi_hal_version_uid_default() { +const uint8_t* furi_hal_version_uid_default(void) { return (const uint8_t*)UID64_BASE; } -const uint8_t* furi_hal_version_uid() { +const uint8_t* furi_hal_version_uid(void) { if(version_get_custom_name(NULL) != NULL) { return (const uint8_t*)&(*((uint32_t*)version_get_custom_name(NULL))); } diff --git a/targets/furi_hal_include/furi_hal_version.h b/targets/furi_hal_include/furi_hal_version.h index e506741ba..ca870ad66 100644 --- a/targets/furi_hal_include/furi_hal_version.h +++ b/targets/furi_hal_include/furi_hal_version.h @@ -157,13 +157,13 @@ const char* furi_hal_version_get_hw_region_name(void); * * @return Hardware Region */ -FuriHalVersionRegion furi_hal_version_get_hw_region_otp(); +FuriHalVersionRegion furi_hal_version_get_hw_region_otp(void); /** Get hardware region name (OTP) * * @return Hardware Region name */ -const char* furi_hal_version_get_hw_region_name_otp(); +const char* furi_hal_version_get_hw_region_name_otp(void); /** Get hardware display id * @@ -223,7 +223,7 @@ size_t furi_hal_version_uid_size(void); */ const uint8_t* furi_hal_version_uid(void); -const uint8_t* furi_hal_version_uid_default(); +const uint8_t* furi_hal_version_uid_default(void); #ifdef __cplusplus }