Modified fixes with review comments

pull/9388/head
Senthil Ramakrishnan 2019-02-01 17:42:49 -06:00
parent ea30ed7a36
commit 2030d03590
2 changed files with 3 additions and 3 deletions

View File

@ -851,7 +851,7 @@ void GenericGap::on_read_phy(
) )
{ {
ble_error_t status = BLE_ERROR_NONE; ble_error_t status = BLE_ERROR_NONE;
if (pal::hci_error_code_t(pal::hci_error_code_t::SUCCESS) != hci_status) { if (hci_status != pal::hci_error_code_t::SUCCESS) {
status = BLE_ERROR_UNSPECIFIED; status = BLE_ERROR_UNSPECIFIED;
} }
@ -868,7 +868,7 @@ void GenericGap::on_phy_update_complete(
) )
{ {
ble_error_t status = BLE_ERROR_NONE; ble_error_t status = BLE_ERROR_NONE;
if (pal::hci_error_code_t(pal::hci_error_code_t::SUCCESS) != hci_status) { if (hci_status != pal::hci_error_code_t::SUCCESS) {
status = BLE_ERROR_UNSPECIFIED; status = BLE_ERROR_UNSPECIFIED;
} }

View File

@ -58,7 +58,7 @@ extern "C" {
/**@{*/ /**@{*/
#if ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) && \ #if ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) && \
(!defined(__ICC8051__) || (__ICC8051__ == 0))) || \ (!defined(__ICC8051__) || (__ICC8051__ == 0))) || \
defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__) || defined(__ARMCC_VERSION)
#include <stdint.h> #include <stdint.h>
#else #else