diff options
author | rise0chen <rise0chen@163.com> | 2021-01-24 11:24:03 +0800 |
---|---|---|
committer | rise0chen <rise0chen@163.com> | 2021-01-24 11:24:03 +0800 |
commit | c1a82ee27d4cd1a74018c9e93037be4295a149cf (patch) | |
tree | 6c1f64f66e173eb90e10ad97b61525fac238450e /nrf-softdevice-macro | |
parent | 0d4faec13a5f9c90f81b01bd4d38641935eaa14d (diff) | |
download | nrf-softdevice-c1a82ee27d4cd1a74018c9e93037be4295a149cf.zip |
support variable length array
Diffstat (limited to 'nrf-softdevice-macro')
-rw-r--r-- | nrf-softdevice-macro/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nrf-softdevice-macro/src/lib.rs b/nrf-softdevice-macro/src/lib.rs index 53d50f3..063bc20 100644 --- a/nrf-softdevice-macro/src/lib.rs +++ b/nrf-softdevice-macro/src/lib.rs @@ -149,6 +149,7 @@ pub fn gatt_server(args: TokenStream, item: TokenStream) -> TokenStream { can_notify: #notify, can_indicate: #indicate, max_len: #ty_as_val::MAX_SIZE as _, + vlen: #ty_as_val::MAX_SIZE != #ty_as_val::MIN_SIZE, }, &[123], )?; |