Skip to content

Commit

Permalink
Fix incorrect check for define
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Sep 24, 2024
1 parent 8160b01 commit 5fe6385
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if("CORDIO_ZERO_COPY_HCI=1" IN_LIST MBED_CONFIG_DEFINITIONS)
if("CORDIO_ZERO_COPY_HCI" IN_LIST MBED_CONFIG_DEFINITIONS)
set(TEST_SKIPPED "Test not relevant for zero copy hci.")
endif()

Expand Down
3 changes: 3 additions & 0 deletions connectivity/FEATURE_BLE/source/generic/GattClientImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ struct GattClient::DiscoveryControlBlock final : public ProcedureControlBlock {
bool done;
};

#undef TRACE_CLASS
#define TRACE_CLASS "ReadControlBlock"
struct GattClient::ReadControlBlock final : public ProcedureControlBlock {
using ProcedureControlBlock::connection_handle;
Expand Down Expand Up @@ -701,6 +702,7 @@ struct GattClient::ReadControlBlock final : public ProcedureControlBlock {
/*
* Control block for the write process
*/
#undef TRACE_CLASS
#define TRACE_CLASS "WriteControlBlock"
struct GattClient::WriteControlBlock final : public ProcedureControlBlock {
using ProcedureControlBlock::connection_handle;
Expand Down Expand Up @@ -926,6 +928,7 @@ struct GattClient::WriteControlBlock final : public ProcedureControlBlock {
/*
* Control block for the descriptor discovery process
*/
#undef TRACE_CLASS
#define TRACE_CLASS "DescriptorDiscoveryControlBlock"
struct GattClient::DescriptorDiscoveryControlBlock final : public ProcedureControlBlock {
using ProcedureControlBlock::connection_handle;
Expand Down
6 changes: 0 additions & 6 deletions rtos/tests/TESTS/mbed_rtos/mutex/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ volatile bool mutex_defect = false;
bool manipulate_protected_zone(const Kernel::Clock::duration thread_delay)
{
bool result = true;
osStatus stat;

stdio_mutex.lock();

Expand Down Expand Up @@ -128,7 +127,6 @@ void test_multiple_threads(void)

void test_dual_thread_nolock_lock_thread(Mutex *mutex)
{
osStatus stat;
mutex->lock();

mutex->unlock();
Expand Down Expand Up @@ -184,7 +182,6 @@ void test_dual_thread_lock_unlock_thread(Mutex *mutex)
void test_dual_thread_lock_unlock(void)
{
Mutex mutex;
osStatus stat;
Thread thread(osPriorityNormal, TEST_STACK_SIZE);

mutex.lock();
Expand Down Expand Up @@ -230,7 +227,6 @@ template <void (*F)(Mutex *)>
void test_dual_thread_lock(void)
{
Mutex mutex;
osStatus stat;
Thread thread(osPriorityNormal, TEST_STACK_SIZE);

mutex.lock();
Expand All @@ -251,7 +247,6 @@ void test_dual_thread_lock(void)
void test_single_thread_lock_recursive(void)
{
Mutex mutex;
osStatus stat;

mutex.lock();

Expand Down Expand Up @@ -287,7 +282,6 @@ void test_single_thread_trylock(void)
void test_single_thread_lock(void)
{
Mutex mutex;
osStatus stat;

mutex.lock();

Expand Down

0 comments on commit 5fe6385

Please sign in to comment.