<?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=8&amp;t=21482&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2018-10-26T16:31:53+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=21482&amp;mode</id>
<entry>
<author><name><![CDATA[romkli]]></name></author>
<updated>2018-10-26T16:31:53+01:00</updated>
<published>2018-10-26T16:31:53+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21482&amp;p=213036#p213036</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21482&amp;p=213036#p213036"/>
<title type="html"><![CDATA[Re: Wysłanie liczby przez UART]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21482&amp;p=213036#p213036"><![CDATA[
OK. <br />Dzięki za podpowiedź.<br />Teraz funkcja wygląda tak:<br />[syntax=c]void send_integer(uint8_t n){<br />char s&#91;4&#93;;<br />itoa ( n, s, 10 );<br />for(uint8_t a=0;a&lt;4;a++) {<br />send_string( s&#91;a&#93; );<br />}<br /><br />}[/syntax]<br /><br /><br />Błąd który teraz przychodzi to:<br />warning: passing argument 1 of 'send_string' makes pointer from integer without a cast <br />oraz informacja:<br />note: expected 'char *' but argument is of type 'char'<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4613">romkli</a> — 26 paź 2018, o 16:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[romkli]]></name></author>
<updated>2018-10-26T15:51:55+01:00</updated>
<published>2018-10-26T15:51:55+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21482&amp;p=213031#p213031</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21482&amp;p=213031#p213031"/>
<title type="html"><![CDATA[Wysłanie liczby przez UART]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21482&amp;p=213031#p213031"><![CDATA[
Witam serdecznie. <br />Chciałbym wysłać przez UART liczbę. Napisałem funkcje zamieniającą liczbę na string, ale mi nie chce działać. <br />[syntax=c]void send_integer(uint8_t n){<br />char *s;<br />itoa ( n, s, 10 );<br />send_string( s );<br /><br />}[/syntax]<br /> Podczas kompilacji wychodzi mi błąd:  warning: 's' is used uninitialized in this function.<br />Proszę o podpowiedź, gdzie mam błąd?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4613">romkli</a> — 26 paź 2018, o 15:51</p><hr />
]]></content>
</entry>
</feed>