Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error? #10

Open
Stephan296 opened this issue Jun 2, 2019 · 0 comments
Open

compile error? #10

Stephan296 opened this issue Jun 2, 2019 · 0 comments

Comments

@Stephan296
Copy link

Stephan296 commented Jun 2, 2019

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino: In function 'void SPI_sync()':

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino:152:49: warning: invalid conversion from 'volatile void*' to 'void*' [-fpermissive]

memcpy(&tx_SPIframe[9], &frameVariant[0][0], 9); //Copy (part of) the next frame to the current frame for sending on the upcoming bitfield 18 clock cycle

                                             ^

In file included from C:\Users\steph\Downloads\arduino-1.8.5-windows\arduino-1.8.5\hardware\arduino\avr\cores\arduino/Arduino.h:25:0,

             from C:\Users\steph\AppData\Local\Temp\arduino_build_189773\sketch\MHI-SPI2ESP.ino.cpp:1:

c:\users\steph\downloads\arduino-1.8.5-windows\arduino-1.8.5\hardware\tools\avr\avr\include\string.h:191:14: note: initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'

extern void *memcpy(void *, const void *, size_t);

          ^

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino: In function 'void loop()':

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino:275:67: warning: invalid conversion from 'volatile void*' to 'const void*' [-fpermissive]

                   memcpy(&toESP.currentMHI, &rx_SPIframe[3], 7);                                               //Copy bitfields 4-10 from the most recent MHI SPI frame to new array for sending to ESP

                                                               ^

In file included from C:\Users\steph\Downloads\arduino-1.8.5-windows\arduino-1.8.5\hardware\arduino\avr\cores\arduino/Arduino.h:25:0,

             from C:\Users\steph\AppData\Local\Temp\arduino_build_189773\sketch\MHI-SPI2ESP.ino.cpp:1:

c:\users\steph\downloads\arduino-1.8.5-windows\arduino-1.8.5\hardware\tools\avr\avr\include\string.h:191:14: note: initializing argument 2 of 'void* memcpy(void*, const void*, size_t)'

extern void *memcpy(void *, const void *, size_t);

          ^

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino:308:62: warning: invalid conversion from 'volatile void*' to 'const void*' [-fpermissive]

               memcpy(&rx_bitfield4_10, &rx_SPIframe[3], 7);                                                    //Get bitfields 4-10 from the last MHI SPI frame to use for the upcoming tx_SPIframe update

                                                          ^

In file included from C:\Users\steph\Downloads\arduino-1.8.5-windows\arduino-1.8.5\hardware\arduino\avr\cores\arduino/Arduino.h:25:0,

             from C:\Users\steph\AppData\Local\Temp\arduino_build_189773\sketch\MHI-SPI2ESP.ino.cpp:1:

c:\users\steph\downloads\arduino-1.8.5-windows\arduino-1.8.5\hardware\tools\avr\avr\include\string.h:191:14: note: initializing argument 2 of 'void* memcpy(void*, const void*, size_t)'

extern void *memcpy(void *, const void *, size_t);

          ^

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino:330:73: warning: invalid conversion from 'volatile void*' to 'void*' [-fpermissive]

           memcpy(&tx_SPIframe[9], &frameVariant[variantnumber][0], 9);                                         //Copy (part of) the next frame to the current frame for sending on the upcoming bitfield 18 clock cycle

                                                                     ^

In file included from C:\Users\steph\Downloads\arduino-1.8.5-windows\arduino-1.8.5\hardware\arduino\avr\cores\arduino/Arduino.h:25:0,

             from C:\Users\steph\AppData\Local\Temp\arduino_build_189773\sketch\MHI-SPI2ESP.ino.cpp:1:

c:\users\steph\downloads\arduino-1.8.5-windows\arduino-1.8.5\hardware\tools\avr\avr\include\string.h:191:14: note: initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'

extern void *memcpy(void *, const void *, size_t);

          ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant