aboutsummaryrefslogtreecommitdiff
path: root/rpc_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc_misc.c')
-rw-r--r--rpc_misc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/rpc_misc.c b/rpc_misc.c
index bcd1974..c0558da 100644
--- a/rpc_misc.c
+++ b/rpc_misc.c
@@ -38,6 +38,12 @@
#include "hal.h"
#include "hal_internal.h"
+static hal_error_t get_version(uint32_t *version)
+{
+ *version = RPC_VERSION;
+ return HAL_OK;
+}
+
static hal_error_t get_random(void *buffer, const size_t length)
{
assert(buffer != NULL && length > 0);
@@ -219,7 +225,7 @@ static hal_error_t logout_all(void)
}
const hal_rpc_misc_dispatch_t hal_rpc_local_misc_dispatch = {
- set_pin, login, logout, logout_all, is_logged_in, get_random
+ set_pin, login, logout, logout_all, is_logged_in, get_random, get_version
};
/*