[riot-commits] [RIOT-OS/RIOT] 36322e: net/gcoap: collection of simple fixes (#7413)

Hauke Petersen devel at haukepetersen.de
Fri Jul 28 14:15:18 CEST 2017

  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 36322e95b7d4d1657b01bf399a874c0e59a8a9c9
  Author: Hauke Petersen <devel at haukepetersen.de>
  Date:   2017-07-28 (Fri, 28 Jul 2017)

  Changed paths:
    M sys/net/application_layer/coap/gcoap.c

  Log Message:
  net/gcoap: collection of simple fixes (#7413)

* net/gcoap: fixed request state when getting a resp

The request state should be set to GCOAP_MEMO_RESP before calling
the response handler in case we actually go a response...

* net/gcoap: make test for 0.00 code more efficient

This optimization saves the computation of the code and compares
the raw field to `0`.

More information about the commits mailing list