[spinel] relax spinel_mcu_power_state_to_cstr input to allow any uint8_t (#4402)

This commit is contained in:
Abtin Keshavarzian
2019-12-16 09:03:48 -08:00
committed by Jonathan Hui
parent bae83ddfbc
commit b689510672
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -2239,7 +2239,7 @@ const char *spinel_net_role_to_cstr(uint8_t net_role)
return ret;
}
const char *spinel_mcu_power_state_to_cstr(spinel_mcu_power_state_t mcu_power_state)
const char *spinel_mcu_power_state_to_cstr(uint8_t mcu_power_state)
{
const char *ret = "MCU_POWER_STATE_UNKNOWN";
@@ -2256,6 +2256,9 @@ const char *spinel_mcu_power_state_to_cstr(spinel_mcu_power_state_t mcu_power_st
case SPINEL_MCU_POWER_STATE_OFF:
ret = "MCU_POWER_STATE_OFF";
break;
default:
break;
}
return ret;
+1 -1
View File
@@ -4085,7 +4085,7 @@ SPINEL_API_EXTERN const char *spinel_prop_key_to_cstr(spinel_prop_key_t prop_key
SPINEL_API_EXTERN const char *spinel_net_role_to_cstr(uint8_t net_role);
SPINEL_API_EXTERN const char *spinel_mcu_power_state_to_cstr(spinel_mcu_power_state_t mcu_power_state);
SPINEL_API_EXTERN const char *spinel_mcu_power_state_to_cstr(uint8_t mcu_power_state);
SPINEL_API_EXTERN const char *spinel_status_to_cstr(spinel_status_t status);