picowota icon indicating copy to clipboard operation
picowota copied to clipboard

reboot.h not usable in C++

Open bobstaff147 opened this issue 11 months ago • 0 comments

The current reboot.h is not compatible with C++ due to the function name being mangled.

Can I suggest the file is changed as shown in this patch

--- /home/dev/picowota_blink/picowota/picowota_reboot/include/picowota/reboot.h +++ reboot.h @@ -11,6 +11,15 @@

#define PICOWOTA_BOOTLOADER_ENTRY_MAGIC 0xb105f00d

+#ifdef __cplusplus +extern "C" { +#endif + void picowota_reboot(bool to_bootloader); + +#ifdef __cplusplus +} +#endif +

#endif /* PICOWOTA_REBOOT_H */

Thanks Bob S.

bobstaff147 avatar Mar 16 '24 11:03 bobstaff147