summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Src/main-hs.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/Src/main-hs.c b/Src/main-hs.c
index f109cf1..d26674b 100644
--- a/Src/main-hs.c
+++ b/Src/main-hs.c
@@ -272,32 +272,6 @@ static void MX_GPIO_Init(void)
}
/* USER CODE BEGIN 4 */
-bool encode_subscription_callback(pb_ostream_t *ostream, const pb_field_t *field, void * const *arg)
-{
- if(ostream!=NULL && field->tag == s2m_MDR_response_subscriptions_tag) {
- for (int x=0; x<2; x++) {
- _subscriptions subs;
- subs.module_id = x+10*x;
- subs.i2c_address = x+1;
- subs.has_entity_id=false;
- subs.has_module_class=false;
- subs.has_i2c_address=true;
- if(!pb_encode_tag_for_field(ostream, field)){
- printf("ERR1\n");
- return false;
- }
- if(!pb_encode_submessage(ostream, _subscriptions_fields, &subs)){
- printf("ERR2\n");
- return false;
- }
- }
- }
- else{
- return false;
- }
- return true;
-}
-
int handshake(uint32_t i2c_addr)
{