esp-idf-lib/devtools/spec/license.rb

Sun, 10 Sep 2023 17:29:15 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 10 Sep 2023 17:29:15 +0200
changeset 37
50dbb626fbab
parent 1
1c9894662795
permissions
-rw-r--r--

Version 0.4.3. Attempt to fix the sunlight overflow of the APDS9930 sensor in the private part of the esp-idf-lib. Removed some error checks from functions that always return OK. Store light sensor registers in the state record and report the values in the json result string.

# frozen_string_literal: true

class License
  def initialize(hash)
    raise ArgumentError, "missing key `name`" unless hash.key?("name")

    @metadata = hash
  end

  def name
    @metadata["name"]
  end

  def to_s
    name
  end
end

mercurial