mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 09:07:47 +00:00
[spinel] relax spinel_mcu_power_state_to_cstr input to allow any uint8_t (#4402)
This commit is contained in:
committed by
Jonathan Hui
parent
bae83ddfbc
commit
b689510672
+4
-1
@@ -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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user