diff options
| author | Aditya Naik | 2020-04-07 11:30:22 -0400 |
|---|---|---|
| committer | Aditya Naik | 2020-04-07 11:30:22 -0400 |
| commit | a970436bb8e930e7edbdafa9cc4c512fcdc9bdec (patch) | |
| tree | 15aab21515728f73caf60f9bdf316614a305dee3 | |
| parent | 5b1730a67ac3712a0d36b22ec00bb336dbfde347 (diff) | |
Removed encoding callback
| -rw-r--r-- | Src/main-hs.c | 26 |
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) { |
