<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=58&amp;t=20298&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2018-02-24T23:20:30+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=58&amp;t=20298&amp;mode</id>
<entry>
<author><name><![CDATA[jez2000]]></name></author>
<updated>2018-02-24T23:20:30+01:00</updated>
<published>2018-02-24T23:20:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204501#p204501</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204501#p204501"/>
<title type="html"><![CDATA[Re: kilka &quot;return&quot; w funkcji zwracającej wynik]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204501#p204501"><![CDATA[
No wlasnie <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" />  co ona zwróci <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /><br />Dobre, nie zauważyłem tego wogole - teraz już rozumie<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=11828">jez2000</a> — 24 lut 2018, o 23:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[APAP75]]></name></author>
<updated>2018-02-24T23:11:36+01:00</updated>
<published>2018-02-24T23:11:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204500#p204500</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204500#p204500"/>
<title type="html"><![CDATA[Re: kilka &quot;return&quot; w funkcji zwracającej wynik]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204500#p204500"><![CDATA[
A co zwróci funkcja kiedy wynik=900 ???<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=6195">APAP75</a> — 24 lut 2018, o 23:11</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jez2000]]></name></author>
<updated>2018-02-24T22:48:08+01:00</updated>
<published>2018-02-24T22:48:08+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204498#p204498</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204498#p204498"/>
<title type="html"><![CDATA[kilka &quot;return&quot; w funkcji zwracającej wynik]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=20298&amp;p=204498#p204498"><![CDATA[
Cześć.<br /><br />Mam taką funkcję:<br /><br />[syntax=c]uint8_t read_analog_key(void){<br /><br />uint16_t wynik;<br />ADMUX = ( ADMUX &amp; 0xF0 ) | 0;<br />ADCSRA |= (1&lt;&lt;ADSC);<br />while( ADCSRA &amp; (1&lt;&lt;ADSC) );<br />wynik = ADCW;<br /><br />if( wynik &gt; 1000 ) return _none_KEY;<br /><br />if( wynik &lt; 50 ) return _btn_RIGHT;<br />if( wynik &lt; 250 ) return _btn_UP;<br />if( wynik &lt; 450 ) return _btn_DOWN;<br />if( wynik &lt; 650 ) return _btn_LEFT;<br />if( wynik &lt; 800 ) return _btn_SELECT;<br /><br />}[/syntax]<br /><br />a kompilator zwraca mi ostrzeżenie:<br /><br /><em><strong>no return in function returning non-void</strong></em><br /><br />Co robię źle, jak to powinno wyglądać??<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=11828">jez2000</a> — 24 lut 2018, o 22:48</p><hr />
]]></content>
</entry>
</feed>