Ignore:
Timestamp:
Jul 3, 2020, 7:19:17 PM (4 years ago)
Author:
coas-nagasima
Message:

ASP3, TINET, mbed を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/cfg/SRecord.rb

    r321 r429  
    3636#  の責任を負わない.
    3737#
    38 #  $Id$
     38#  $Id: SRecord.rb 161 2018-12-12 00:45:04Z ertl-hiro $
    3939#
    4040
     
    170170    end
    171171  end
     172
     173  # 文字列としてのデータ取得
     174  def get_string(address)
     175    str = ""
     176    targetChar = get_data(address, 1).hex
     177    while (!targetChar.nil? && targetChar != 0)
     178      str += targetChar.chr
     179      address += 1
     180      targetChar = get_data(address, 1).hex
     181    end
     182    return(str)
     183  end
    172184end
Note: See TracChangeset for help on using the changeset viewer.