From c1847bdd4facbd48359690d584accc65fbc13ab8 Mon Sep 17 00:00:00 2001 From: Sophia Papagiannaki Date: Tue, 12 May 2020 11:09:42 +0200 Subject: added firmware upgrade function --- o3000.h | 1 + 1 file changed, 1 insertion(+) (limited to 'o3000.h') diff --git a/o3000.h b/o3000.h index 51c8c3b..2ec4d07 100644 --- a/o3000.h +++ b/o3000.h @@ -88,6 +88,7 @@ int __stdcall o3000_disconnect(int id); int __stdcall o3000_send_xml(int id, const char *msg, int msg_len); +int __stdcall o3000_firmware_update(unsigned char *data, int data_len); #if defined(__cplusplus) || defined(c_plusplus) } // extern "C" -- cgit v1.2.1 From bf0831b3e877ec53f223b73c1de5f6028f24a885 Mon Sep 17 00:00:00 2001 From: Sophia Papagiannaki Date: Tue, 19 May 2020 18:30:53 +0200 Subject: Version 2.1.0 Implemented firmware update. --- o3000.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'o3000.h') diff --git a/o3000.h b/o3000.h index 2ec4d07..ac2127e 100644 --- a/o3000.h +++ b/o3000.h @@ -53,6 +53,10 @@ #define O3000_ERROR_USB_TRANSFER_TIMEOUT -10 ///< USB transfer timeout #define O3000_ERROR_USB_EP_HALTED -11 ///< USB endpoint halted #define O3000_ERROR_LESS_DATA -12 ///< USB received less data than expected +#define O3000_ERROR_NOT_VALID_ARGUMENT -13 ///< at least one function argument is not valid +#define O3000_ERROR_SESSION_STILL_OPEN -14 ///< there is at least one session still open +#define O3000_ERROR_BOOTLOADER_TIMEOUT -15 ///< camera could not start in bootloader mode in given time +#define O3000_ERROR_USB_INIT_FAILURE -16 ///< failed to initialize the usb #define O3000_ERROR_OTHER -1000 ///< other (unspecified) error -- cgit v1.2.1 From 6e04d6e2cc094aae7122627a96b35fb76038a17e Mon Sep 17 00:00:00 2001 From: Patrick Roth Date: Fri, 9 Oct 2020 13:24:58 +0200 Subject: update --> upgrade , more checks added Use firmware upgrade instead of update. The firmware update function does more sanity checks. --- o3000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'o3000.h') diff --git a/o3000.h b/o3000.h index ac2127e..17aa6a5 100644 --- a/o3000.h +++ b/o3000.h @@ -92,7 +92,7 @@ int __stdcall o3000_disconnect(int id); int __stdcall o3000_send_xml(int id, const char *msg, int msg_len); -int __stdcall o3000_firmware_update(unsigned char *data, int data_len); +int __stdcall o3000_firmware_upgrade(unsigned char *data, int data_len); #if defined(__cplusplus) || defined(c_plusplus) } // extern "C" -- cgit v1.2.1