Skip to content

Commit

Permalink
Merge pull request #8814 from jarvte/unify_cellular_return
Browse files Browse the repository at this point in the history
Cellular: unified return value comments on API folder.
  • Loading branch information
0xc0170 committed Nov 24, 2018
2 parents cb6f5d6 + c620562 commit 5086c3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion features/cellular/framework/API/CellularDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ class CellularDevice {
* For example, when multiple modules are supported in a single AT driver this function detects
* and adapts to an actual module at runtime.
*
* @return 0 on success
* @return NSAPI_ERROR_OK on success
* NSAPI_ERROR_NO_MEMORY on case of memory failure
* NSAPI_ERROR_UNSUPPORTED if current model is not detected
* NSAPI_ERROR_DEVICE_ERROR if model information could not be read
*
*/
virtual nsapi_error_t init_module() = 0;

Expand Down
2 changes: 1 addition & 1 deletion features/cellular/framework/API/CellularInformation.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class CellularInformation {
IMEISV = 2, // IMEI and Software Version number
SVN = 3 // Software Version Number
};
virtual nsapi_size_or_error_t get_serial_number(char *buf, size_t buf_size, SerialNumberType type = SN) = 0;
virtual nsapi_error_t get_serial_number(char *buf, size_t buf_size, SerialNumberType type = SN) = 0;
};

} // namespace mbed
Expand Down

0 comments on commit 5086c3d

Please sign in to comment.