Timeline for mega include a library
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 2, 2015 at 8:36 | comment | added | aaa |
Ah I see, yea, it's hard to just see such an error in code you haven't made yourself. But, the error usually gives a good idea of what is wrong (though it might sound a bit technical) expected ')' before numeric means that it simply didn't expect another numeric to come, thus wanted to close the function call (with a ')') before it could take another numeric. But in this case we didn't need a ')' there but a ','... But that's also why I asked for the position/character on the line.
|
|
| Apr 2, 2015 at 7:17 | comment | added | Alex Antonov | Thanks for helping, this was a typo: github.com/justintconroy/MdbBillValidator/pull/4 | |
| Apr 2, 2015 at 7:06 | comment | added | aaa |
You're sure you have all the RXEN1, TXEN1, RXCIE1, UDRIE1, U2X1 UCSZ12, UCSZ11, UCSZ10, UPM11, UPM10, UMSEL11, UMSEL10 defined or initialized somewhere? And can you see on what character/position on that line the error is?
|
|
| Apr 2, 2015 at 6:22 | comment | added | Alex Antonov |
btw, it's still don't work on windows. I get this: C:\Users\User\Documents\Arduino\libraries\MdbBillValidator\MdbSerial.cpp:554:135: error: expected ')' before numeric constant MdbSerial MdbPort1(&rx_buffer1, &tx_buffer1, &UBRR1H, &UBRR1L, &UCSR1A, &UCSR1B, &UCSR1C, &UDR1, RXEN1, TXEN1, RXCIE1, UDRIE1, U2X1 UCSZ12, UCSZ11, UCSZ10, UPM11, UPM10, UMSEL11, UMSEL10);
|
|
| Apr 2, 2015 at 6:08 | comment | added | Alex Antonov | I asked him at github about this. In general, this library allows to connect mdb bus with PC through arduino | |
| Apr 2, 2015 at 6:05 | comment | added | aaa |
He might have had another file, that he didn't upload to github. You do have an idea of what these values do? Because TXB8 is bit 0 from the register, so instead of using 0, you can use a define or definition, which is easier to understand. Also, you should check the error message when it won't compile. error: ‘TXB8’ was not declared in this scope Which mean that the compiler could't find the variable 'TXB8'. So either missing a variable, out of scope, or missing a define ;D And if you look at the code on that position, you should see what is missing there.
|
|
| Apr 2, 2015 at 4:00 | comment | added | Alex Antonov | Regards, done compiling! What do you think about it? Why author set these values empty? | |
| Apr 2, 2015 at 3:59 | vote | accept | Alex Antonov | ||
| Apr 1, 2015 at 20:04 | history | answered | aaa | CC BY-SA 3.0 |