[riot-commits] [RIOT-OS/RIOT] 2231a3: vtimer: fix callback usage

Oleg Hahm oleg at hobbykeller.org
Thu Jul 10 17:12:24 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 2231a315d48459b8ee09949503341a2fc8c728cf
      https://github.com/RIOT-OS/RIOT/commit/2231a315d48459b8ee09949503341a2fc8c728cf
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-06-03 (Tue, 03 Jun 2014)

  Changed paths:
    M sys/include/vtimer.h
    M sys/vtimer/vtimer.c

  Log Message:
  -----------
  vtimer: fix callback usage

There is no need to test the "handler" set in the vtimer struct, and
have some code executed then. We just can make the code to execute the
handler. To lengthy `if else if`, just a call.


  Commit: a6e97a4f753b5a341708722ef4fc5574642dddbb
      https://github.com/RIOT-OS/RIOT/commit/a6e97a4f753b5a341708722ef4fc5574642dddbb
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2014-07-10 (Thu, 10 Jul 2014)

  Changed paths:
    M sys/include/vtimer.h
    M sys/vtimer/vtimer.c

  Log Message:
  -----------
  Merge pull request #1034 from Kijewski/vtimer-callbacks

vtimer: fix callback usage


Compare: https://github.com/RIOT-OS/RIOT/compare/b78a1b32d059...a6e97a4f753b


More information about the commits mailing list