Skip to content

Commit

Permalink
Merge pull request #5 from libdriver/dev
Browse files Browse the repository at this point in the history
fix: fix timestamp bugs
  • Loading branch information
libdriver authored Apr 6, 2024
2 parents 457c444 + 82f85f6 commit 0335bb5
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 29 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.1 (2024-04-15)

## Bug Fixes

- fix timestamp bugs.

## 1.0.0 (2023-03-15)

## Features
Expand Down
26 changes: 13 additions & 13 deletions doc/html/driver__ir__remote_8c_source.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions doc/html/driver__ir__remote_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structir__remote__time__s.html"> 91</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structir__remote__time__s.html">ir_remote_time_s</a></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;{</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab"> 93</a></span>&#160; uint32_t <a class="code" href="structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab">s</a>; </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc"> 93</a></span>&#160; uint64_t <a class="code" href="structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc">s</a>; </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structir__remote__time__s.html#aacd10328101739a1c5576f0fbb6fd8e7"> 94</a></span>&#160; uint32_t <a class="code" href="structir__remote__time__s.html#aacd10328101739a1c5576f0fbb6fd8e7">us</a>; </div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="group__ir__remote__basic__driver.html#gacfc85d5ce34cd9962060588914145545"> 95</a></span>&#160;} <a class="code" href="group__ir__remote__basic__driver.html#gacfc85d5ce34cd9962060588914145545">ir_remote_time_t</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
Expand Down Expand Up @@ -224,7 +224,7 @@
<div class="ttc" id="astructir__remote__s_html_ade818037fd6c985038ff29656089758d"><div class="ttname"><a href="structir__remote__s.html#ade818037fd6c985038ff29656089758d">ir_remote_s::status</a></div><div class="ttdeci">uint8_t status</div><div class="ttdef"><b>Definition:</b> <a href="driver__ir__remote_8h_source.html#l00083">driver_ir_remote.h:83</a></div></div>
<div class="ttc" id="astructir__remote__s_html_af3f726014b044194def151079f1f2d89"><div class="ttname"><a href="structir__remote__s.html#af3f726014b044194def151079f1f2d89">ir_remote_s::address</a></div><div class="ttdeci">uint8_t address</div><div class="ttdef"><b>Definition:</b> <a href="driver__ir__remote_8h_source.html#l00084">driver_ir_remote.h:84</a></div></div>
<div class="ttc" id="astructir__remote__time__s_html"><div class="ttname"><a href="structir__remote__time__s.html">ir_remote_time_s</a></div><div class="ttdoc">ir_remote time structure definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__ir__remote_8h_source.html#l00091">driver_ir_remote.h:92</a></div></div>
<div class="ttc" id="astructir__remote__time__s_html_a2dee666f0c1fe072c549ff86b1d0a8ab"><div class="ttname"><a href="structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab">ir_remote_time_s::s</a></div><div class="ttdeci">uint32_t s</div><div class="ttdef"><b>Definition:</b> <a href="driver__ir__remote_8h_source.html#l00093">driver_ir_remote.h:93</a></div></div>
<div class="ttc" id="astructir__remote__time__s_html_a963840de6724d0090ffb30f4b6e6f8fc"><div class="ttname"><a href="structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc">ir_remote_time_s::s</a></div><div class="ttdeci">uint64_t s</div><div class="ttdef"><b>Definition:</b> <a href="driver__ir__remote_8h_source.html#l00093">driver_ir_remote.h:93</a></div></div>
<div class="ttc" id="astructir__remote__time__s_html_aacd10328101739a1c5576f0fbb6fd8e7"><div class="ttname"><a href="structir__remote__time__s.html#aacd10328101739a1c5576f0fbb6fd8e7">ir_remote_time_s::us</a></div><div class="ttdeci">uint32_t us</div><div class="ttdef"><b>Definition:</b> <a href="driver__ir__remote_8h_source.html#l00094">driver_ir_remote.h:94</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
Expand Down
2 changes: 1 addition & 1 deletion doc/html/functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
: <a class="el" href="structir__remote__handle__s.html#ad1623ddb4629519e1df24295b0d463fd">ir_remote_handle_s</a>
</li>
<li>s
: <a class="el" href="structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab">ir_remote_time_s</a>
: <a class="el" href="structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc">ir_remote_time_s</a>
</li>
<li>status
: <a class="el" href="structir__remote__s.html#ade818037fd6c985038ff29656089758d">ir_remote_s</a>
Expand Down
2 changes: 1 addition & 1 deletion doc/html/functions_vars.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
: <a class="el" href="structir__remote__handle__s.html#ad1623ddb4629519e1df24295b0d463fd">ir_remote_handle_s</a>
</li>
<li>s
: <a class="el" href="structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab">ir_remote_time_s</a>
: <a class="el" href="structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc">ir_remote_time_s</a>
</li>
<li>status
: <a class="el" href="structir__remote__s.html#ade818037fd6c985038ff29656089758d">ir_remote_s</a>
Expand Down
2 changes: 1 addition & 1 deletion doc/html/group__ir__remote__basic__driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var group__ir__remote__basic__driver =
[ "status", "structir__remote__s.html#ade818037fd6c985038ff29656089758d", null ]
] ],
[ "ir_remote_time_s", "structir__remote__time__s.html", [
[ "s", "structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab", null ],
[ "s", "structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc", null ],
[ "us", "structir__remote__time__s.html#aacd10328101739a1c5576f0fbb6fd8e7", null ]
] ],
[ "ir_remote_decode_s", "structir__remote__decode__s.html", [
Expand Down
2 changes: 1 addition & 1 deletion doc/html/navtreeindex0.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ var NAVTREEINDEX0 =
"structir__remote__s.html#ade818037fd6c985038ff29656089758d":[0,0,1,0,2],
"structir__remote__s.html#af3f726014b044194def151079f1f2d89":[0,0,1,0,0],
"structir__remote__time__s.html":[0,0,1,1],
"structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab":[0,0,1,1,0],
"structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc":[0,0,1,1,0],
"structir__remote__time__s.html#aacd10328101739a1c5576f0fbb6fd8e7":[0,0,1,1,1]
};
2 changes: 1 addition & 1 deletion doc/html/search/all_7.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var searchData=
[
['s_80',['s',['../structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab',1,'ir_remote_time_s']]],
['s_80',['s',['../structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc',1,'ir_remote_time_s']]],
['status_81',['status',['../structir__remote__s.html#ade818037fd6c985038ff29656089758d',1,'ir_remote_s']]],
['supply_5fvoltage_5fmax_82',['SUPPLY_VOLTAGE_MAX',['../driver__ir__remote_8c.html#a68eba8b601afe11f1b871d944976c035',1,'driver_ir_remote.c']]],
['supply_5fvoltage_5fmax_5fv_83',['supply_voltage_max_v',['../structir__remote__info__s.html#a3d2b12bcac7a85ea8646bff9debe8660',1,'ir_remote_info_s']]],
Expand Down
2 changes: 1 addition & 1 deletion doc/html/search/variables_7.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var searchData=
[
['s_136',['s',['../structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab',1,'ir_remote_time_s']]],
['s_136',['s',['../structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc',1,'ir_remote_time_s']]],
['status_137',['status',['../structir__remote__s.html#ade818037fd6c985038ff29656089758d',1,'ir_remote_s']]],
['supply_5fvoltage_5fmax_5fv_138',['supply_voltage_max_v',['../structir__remote__info__s.html#a3d2b12bcac7a85ea8646bff9debe8660',1,'ir_remote_info_s']]],
['supply_5fvoltage_5fmin_5fv_139',['supply_voltage_min_v',['../structir__remote__info__s.html#ad8bde6ddadaf43d951e62f3befb9d35a',1,'ir_remote_info_s']]]
Expand Down
10 changes: 5 additions & 5 deletions doc/html/structir__remote__time__s.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a2dee666f0c1fe072c549ff86b1d0a8ab"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab">s</a></td></tr>
<tr class="separator:a2dee666f0c1fe072c549ff86b1d0a8ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a963840de6724d0090ffb30f4b6e6f8fc"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc">s</a></td></tr>
<tr class="separator:a963840de6724d0090ffb30f4b6e6f8fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacd10328101739a1c5576f0fbb6fd8e7"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structir__remote__time__s.html#aacd10328101739a1c5576f0fbb6fd8e7">us</a></td></tr>
<tr class="separator:aacd10328101739a1c5576f0fbb6fd8e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
Expand All @@ -108,14 +108,14 @@

<p class="definition">Definition at line <a class="el" href="driver__ir__remote_8h_source.html#l00091">91</a> of file <a class="el" href="driver__ir__remote_8h_source.html">driver_ir_remote.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a2dee666f0c1fe072c549ff86b1d0a8ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2dee666f0c1fe072c549ff86b1d0a8ab">&#9670;&nbsp;</a></span>s</h2>
<a id="a963840de6724d0090ffb30f4b6e6f8fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a963840de6724d0090ffb30f4b6e6f8fc">&#9670;&nbsp;</a></span>s</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t s</td>
<td class="memname">uint64_t s</td>
</tr>
</table>
</div><div class="memdoc">
Expand Down
2 changes: 1 addition & 1 deletion doc/html/structir__remote__time__s.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var structir__remote__time__s =
[
[ "s", "structir__remote__time__s.html#a2dee666f0c1fe072c549ff86b1d0a8ab", null ],
[ "s", "structir__remote__time__s.html#a963840de6724d0090ffb30f4b6e6f8fc", null ],
[ "us", "structir__remote__time__s.html#aacd10328101739a1c5576f0fbb6fd8e7", null ]
];
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
/**
* @brief timer var definition
*/
static uint32_t gs_second = 0; /**< second */
static uint64_t gs_second = 0; /**< second */

/**
* @brief timer callback
Expand Down
2 changes: 1 addition & 1 deletion src/driver_ir_remote.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ typedef struct ir_remote_s
*/
typedef struct ir_remote_time_s
{
uint32_t s; /**< second */
uint64_t s; /**< second */
uint32_t us; /**< microsecond */
} ir_remote_time_t;

Expand Down

0 comments on commit 0335bb5

Please sign in to comment.