/*! \brief Initiates the calls to get the info to update the tab with the interrogated ECU infomation */ G_MODULE_EXPORT void update_interrogation_gui_pf(void) { if (!DATA_GET(global_data,"interrogated")) return; /* Request firmware version */ request_firmware_version(); request_interface_version(); request_firmware_build_date(); request_firmware_build_os(); request_firmware_compiler(); }
G_MODULE_EXPORT void update_interrogation_gui_pf(void) { gchar *version = NULL; gchar *fw_version = NULL; guint8 major = 0; guint8 minor = 0; guint8 micro = 0; if (!DATA_GET(global_data,"interrogated")) return; /* Request firmware version */ fw_version = request_firmware_version(NULL); thread_update_widget_f("ecu_signature_entry",MTX_ENTRY,g_strdup(fw_version)); g_free(fw_version); /* Request interface version */ version = request_detailed_interface_version(&major, &minor, µ); thread_update_widget_f("text_version_entry",MTX_ENTRY,g_strdup(version)); thread_update_widget_f("ecu_revision_entry",MTX_ENTRY,g_strdup_printf("%i.%i.%i",major,minor,micro)); g_free(version); }