Skip to content

Commit deffc3f

Browse files
paul-szczepanek-armCruz Monrreal II
authored andcommitted
fix swapped errors
1 parent e1e20f8 commit deffc3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,9 +1023,9 @@ ble_error_t Gap::periodic_advertising_create_sync(
10231023
);
10241024

10251025
if (sync_id == DM_SYNC_ID_NONE) {
1026-
return BLE_ERROR_NONE;
1027-
} else {
10281026
return BLE_ERROR_INTERNAL_STACK_FAILURE;
1027+
} else {
1028+
return BLE_ERROR_NONE;
10291029
}
10301030
}
10311031

0 commit comments

Comments
 (0)