Skip to content

reboot.h not usable in C++ #19

Description

@bobstaff147

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions