aboutsummaryrefslogtreecommitdiff
path: root/src/rtt/rtt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtt/rtt.c')
-rw-r--r--src/rtt/rtt.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rtt/rtt.c b/src/rtt/rtt.c
index e31e754..15b9a37 100644
--- a/src/rtt/rtt.c
+++ b/src/rtt/rtt.c
@@ -140,8 +140,8 @@ int rtt_start(void)
addr);
rtt.ctrl.address = addr;
} else {
- LOG_INFO("rtt: No control block found");
- return ERROR_OK;
+ LOG_ERROR("rtt: No control block found");
+ return ERROR_FAIL;
}
}
@@ -297,11 +297,6 @@ int rtt_write_channel(unsigned int channel_index, const uint8_t *buffer,
length, NULL);
}
-bool rtt_started(void)
-{
- return rtt.started;
-}
-
bool rtt_configured(void)
{
return rtt.configured;