From fda096b4c468077c0f6c0a4d25a5e897c361aa4a Mon Sep 17 00:00:00 2001 From: Wajahat Abbas Date: Fri, 20 Jul 2018 13:49:43 +0500 Subject: [PATCH 1/2] Make ATHandler:cmd_start() virtual --- features/cellular/framework/AT/ATHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cellular/framework/AT/ATHandler.h b/features/cellular/framework/AT/ATHandler.h index 6ae417a3d68..8d9b44a4180 100644 --- a/features/cellular/framework/AT/ATHandler.h +++ b/features/cellular/framework/AT/ATHandler.h @@ -226,7 +226,7 @@ class ATHandler { * * @param cmd AT command to be written to modem */ - void cmd_start(const char *cmd); + virtual void cmd_start(const char *cmd); /** Writes integer type AT command subparameter. Starts with the delimiter if not the first param after cmd_start. * In case of failure when writing, the last error is set to NSAPI_ERROR_DEVICE_ERROR. From dfc8ca91fa096fda71fc1096db8f01d5b1c83baf Mon Sep 17 00:00:00 2001 From: Wajahat Abbas Date: Wed, 1 Aug 2018 16:59:18 +0500 Subject: [PATCH 2/2] made destructor virtual as class has a virtual method now --- features/cellular/framework/AT/ATHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cellular/framework/AT/ATHandler.h b/features/cellular/framework/AT/ATHandler.h index 8d9b44a4180..17bb4d33a6c 100644 --- a/features/cellular/framework/AT/ATHandler.h +++ b/features/cellular/framework/AT/ATHandler.h @@ -75,7 +75,7 @@ class ATHandler { * @param send_delay the minimum delay in ms between the end of last response and the beginning of a new command */ ATHandler(FileHandle *fh, events::EventQueue &queue, int timeout, const char *output_delimiter, uint16_t send_delay = 0); - ~ATHandler(); + virtual ~ATHandler(); /** Return used file handle. *