Skip to content

Commit

Permalink
add missing void
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Mar 25, 2024
1 parent ae84992 commit a6aa441
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions targets/f7/furi_hal/furi_hal_region.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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";
}
12 changes: 6 additions & 6 deletions targets/f7/furi_hal/furi_hal_version.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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)));
}
Expand Down
6 changes: 3 additions & 3 deletions targets/furi_hal_include/furi_hal_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit a6aa441

Please sign in to comment.