Switch branches/tags
Nothing to show
Commits on Nov 21, 2016
Commits on Nov 19, 2016
  1. Add dialyzer options

    msantos committed Nov 19, 2016
Commits on Nov 18, 2016
  1. Export wierl_monitor:dlt/1

    msantos committed Nov 18, 2016
    Revert dd4ea20, re-add the encoding from atom to integer and export
    the function to suppress the dialyzer warnings.
Commits on Nov 17, 2016
Commits on Nov 16, 2016
Commits on Nov 15, 2016
  1. rebar3: clean up makefile

    msantos committed Nov 15, 2016
Commits on Nov 13, 2016
  1. rfkill: dialyzer warnings, fd leak

    msantos committed Nov 13, 2016
    list/0: ensure the fd is closed on error conditions. Fix the invalid
    patterns in case clause when converting the data read from the rfkill
    device into a record.
    Change the return value of list: it now returns a list of #rf_kill{}
    event records or an empty list.
Commits on Nov 12, 2016
  1. Switch to rebar3

    msantos committed Nov 12, 2016
Commits on Feb 17, 2015
  1. Copyright heartbeat

    msantos committed Feb 17, 2015
  2. Pin deps

    msantos committed Feb 17, 2015
Commits on Apr 6, 2013
  1. Convert integer macros to arity 1

    msantos committed Apr 6, 2013
    Manually convert the macros extracting integers from binaries to an
    arity-1 macro. Compiles and a quick review of the diff but probably some
    copy/paste errors lurking here.
  2. Copyright heartbeat

    msantos committed Apr 6, 2013
  3. Fix rebar URL

    msantos committed Apr 6, 2013
Commits on Sep 23, 2012
  1. Whitespace cleanup

    msantos committed Sep 23, 2012
Commits on Apr 14, 2012
  1. rfkill: list should return a rfkill_event record

    msantos committed Apr 14, 2012
    Match the doc and return the record rather than a tagged proplist.
Commits on Apr 13, 2012
Commits on Feb 18, 2012
  1. Whitespace

    msantos committed Feb 18, 2012
  2. Split rfkill record and constants into a header

    msantos committed Feb 18, 2012
    Correct the return value of rfkill:list/0 in the documentation.
  3. Cleanup README

    msantos committed Feb 18, 2012
Commits on Dec 5, 2011
Commits on Sep 23, 2011
  1. Remove macro

    msantos committed Sep 23, 2011
  2. Update README

    msantos committed Sep 23, 2011
  3. Fix proplist returned by wierl:format

    msantos committed Sep 23, 2011
    Broken by a previous change.
Commits on Sep 22, 2011
Commits on Sep 18, 2011
  1. rfkill: check for fd errors

    msantos committed Sep 18, 2011
Commits on Sep 4, 2011
  1. Return an error for bad/unsupported frames

    msantos committed Sep 4, 2011
    Return an error rather than throwing an exception.
Commits on Sep 3, 2011
  1. Fix FCS on frames without lengths

    msantos committed Sep 3, 2011
    Pull out the checksum from ambiguous frames before parsing them again.
Commits on Sep 2, 2011
  1. Allow the caller to set the initial FCS state

    msantos committed Sep 2, 2011
    If the caller knows the system supports FCS, the gen_server state can be
    set on startup. This avoids the case where the first few frames are
    frames without a length, and so will include the FCS in the frame body.
  2. Support unpacking of FCS in ambiguous frames

    msantos committed Sep 2, 2011
    Keep the driver support for FCS (i.e., whether the driver provides all
    packets (including corrupted packets) and the FCS) in the gen_server
    Return the checksum to the user as an integer. If the checksum is not
    available, return 0 (is 0 a possible checksum? should we return
    something else? An atom, -1, ...?).
    If the system supports checksums, the gen_server state is updated on
    every frame. This is probably inefficient.
    The inital state of the fcs field is false. This means it's possible to
    have 1 frame incorrectly parsed, e.g., if a frame without a length is
    received as the first packet.
Commits on Aug 15, 2011
  1. Return the frame checksum

    msantos committed Aug 15, 2011
    Modify the return value of wierl_frame:type/2 to include the frame
    checksum. If the checksum is not available, an empty binary is returned.
    The last element of some of the packets is a variable length field
    so there is no way of telling if the driver include an FCS. In these
    ambiguos cases, the wierl_frame:type/2 returns the atom 'false'. It is
    up to the caller to pull out the checksum.
    At the moment, the FCS is discarded:
    * wierl_monitor: the FCS should be checked and, based upon an option, if
      the check fails, the frame should be discarded
    * wierl_monitor: the FCS driver "status" (whether the driver provides
      the FCS) should be kept in the gen_server state. If the FCS status of
      the frame is ambigous, the gen_server will take the status of the last
    * wierl_monitor: provide an option to override FCS mode
Commits on Aug 14, 2011
  1. Update comments

    msantos committed Aug 14, 2011
    Setting the mode will never go into an infinite loop now, it will be
    killed by the init timeout.
Commits on Aug 13, 2011
  1. Correct return value of wierl_scan:list

    msantos committed Aug 13, 2011
    wierl_scan:list was returning {atom(), [binary()|...]}, when it should
    have been returning {atom(), binary()}.
  2. Improve binary match

    msantos committed Aug 13, 2011
Commits on Aug 12, 2011
  1. Move DLT check to init

    msantos committed Aug 12, 2011
    On multi-core systems, getting the datalink would hang in active mode.
    The socket had likely been already passed to open_port and beam was
    consuming all the events (meaning the read in datalinktype would always
    return {error,eagain}).
    Fix the hang by moving the datalink check to the synchronous init.
    Simplify the datalink code by using the start_link timeout option.
    Rename the header record to dlt.