diff --git a/avlos/templates/fw_endpoints.c.jinja b/avlos/templates/fw_endpoints.c.jinja index ff26148..0921718 100644 --- a/avlos/templates/fw_endpoints.c.jinja +++ b/avlos/templates/fw_endpoints.c.jinja @@ -47,7 +47,6 @@ {% set comma = joiner(", ") %} uint8_t (*avlos_endpoints[{{ instance | endpoints | length }}])(uint8_t * buffer, uint8_t * buffer_len, Avlos_Command cmd) = { {%- for attr in instance | endpoints %}{{ comma() }}&avlos_{{attr.full_name | replace(".", "_") }}{%- endfor %} }; -uint32_t avlos_proto_hash = {{ instance.hash_uint32 }}; uint32_t _avlos_get_proto_hash(void) { diff --git a/avlos/templates/fw_endpoints.h.jinja b/avlos/templates/fw_endpoints.h.jinja index 3e1eb15..8497f6a 100644 --- a/avlos/templates/fw_endpoints.h.jinja +++ b/avlos/templates/fw_endpoints.h.jinja @@ -12,7 +12,7 @@ #include {{ include | as_include }} {%- endfor %} -extern uint32_t avlos_proto_hash; +staic const uint32_t avlos_proto_hash = {{ instance.hash_uint32 }}; extern uint8_t (*avlos_endpoints[{{ instance | endpoints | length }}])(uint8_t * buffer, uint8_t * buffer_len, Avlos_Command cmd); extern uint32_t _avlos_get_proto_hash(void);