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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-09-03T10:21:28+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=8390&amp;mode</id>
<entry>
<author><name><![CDATA[matw]]></name></author>
<updated>2014-09-03T10:21:28+01:00</updated>
<published>2014-09-03T10:21:28+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8390&amp;p=94103#p94103</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8390&amp;p=94103#p94103"/>
<title type="html"><![CDATA[Re: Zakres liczb]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8390&amp;p=94103#p94103"><![CDATA[
A to nie przez to: [syntax=c]ram_cfg.step= atoi(wsk);[/syntax]??<br />Ja bym dał: [syntax=c]ram_cfg.step= atol(wsk);[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2394">matw</a> — 3 wrz 2014, o 10:21</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rohan]]></name></author>
<updated>2014-09-03T10:14:52+01:00</updated>
<published>2014-09-03T10:14:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=8390&amp;p=94102#p94102</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=8390&amp;p=94102#p94102"/>
<title type="html"><![CDATA[Zakres liczb]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=8390&amp;p=94102#p94102"><![CDATA[
Witam,<br />Używam kodu z poradnika,  AVR-EEPROM - Struktury <br />Zmieniłem uart_putsint na uart_putslong <br />jednak kiedy próbuję przesłać liczbę większa od 32767<br />konsola zwraca:<br />at+step=64000<br />+STEP: -1536<br />OK<br /><br />Proszę o jakieś wskazówki<br /><br /><br /><br />[syntax=c]int8_t at_step_service(uint8_t inout, char * params) {<br /><br />char * wsk;<br /><br />if( 1 == inout ) {<br /><br />if(!strlen(params)) return -1;<br />wsk = strtok(params, &quot;:&quot;);<br />ram_cfg.step= atoi(wsk);<br /><br />copy_ram_to_eem();<br /><br />uart_puts(&quot;\r\n+STEP: &quot;);<br />uart_putlong( ram_cfg.step ,10 );// uint32_t<br />uart_puts(&quot;\r\n&quot;);<br /><br />} else if( !inout ) {<br /><br />} else if( 2 == inout ) {<br /><br />}<br />return 0;<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4138">rohan</a> — 3 wrz 2014, o 10:14</p><hr />
]]></content>
</entry>
</feed>