Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LSM303AGR
Diff: LSM303AGR_JS-js.cpp
- Revision:
- 4:ae1fba759405
- Parent:
- 3:d076984ee23b
diff -r d076984ee23b -r ae1fba759405 LSM303AGR_JS-js.cpp
--- a/LSM303AGR_JS-js.cpp Tue Oct 31 16:23:10 2017 +0100
+++ b/LSM303AGR_JS-js.cpp Wed Jan 17 10:56:45 2018 +0100
@@ -9,7 +9,7 @@
******************************************************************************
* @attention
*
- * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
+ * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
@@ -91,7 +91,6 @@
CHECK_ARGUMENT_TYPE_ON_CONDITION(LSM303AGR_JS, init_acc_spi, 2, number, args_count == 4);
CHECK_ARGUMENT_TYPE_ON_CONDITION(LSM303AGR_JS, init_acc_spi, 3, number, args_count == 4);
- printf("init_acc_spi!\n");
// Unwrap native LSM303AGR_JS object
void *void_ptr;
const jerry_object_native_info_t *type_ptr;
@@ -149,7 +148,6 @@
CHECK_ARGUMENT_TYPE_ON_CONDITION(LSM303AGR_JS, init_acc_i2c, 2, number, args_count == 3);
CHECK_ARGUMENT_TYPE_ON_CONDITION(LSM303AGR_JS, init_acc_i2c, 3, number, args_count == 4);
- printf("init_acc_i2c!\n");
// Unwrap native LSM303AGR_JS object
void *void_ptr;
const jerry_object_native_info_t *type_ptr;
@@ -212,7 +210,6 @@
CHECK_ARGUMENT_TYPE_ALWAYS(LSM303AGR_JS, init_mag_spi, 1, number);
CHECK_ARGUMENT_TYPE_ON_CONDITION(LSM303AGR_JS, init_mag_spi, 2, number, args_count == 3);
- printf("init_mag_spi!\n");
// Unwrap native LSM303AGR_JS object
void *void_ptr;
const jerry_object_native_info_t *type_ptr;
@@ -269,7 +266,6 @@
CHECK_ARGUMENT_TYPE_ON_CONDITION(LSM303AGR_JS, init_mag_i2c, 1, number, args_count == 2);
CHECK_ARGUMENT_TYPE_ON_CONDITION(LSM303AGR_JS, init_mag_i2c, 2, number, args_count == 3);
- printf("init_mag_i2c!\n");
// Unwrap native LSM303AGR_JS object
void *void_ptr;
const jerry_object_native_info_t *type_ptr;
@@ -342,7 +338,7 @@
// Cast it back to JavaScript
jerry_value_t out = jerry_create_string((unsigned char *)result);
- printf("acc: %s\n", result);
+ //printf("acc: %s\n", result);
// Recycle the result from function
delete result;
@@ -379,7 +375,7 @@
// Cast it back to JavaScript
jerry_value_t out = jerry_create_string((unsigned char *)result);
- printf("mag: %s\n", result);
+ //printf("mag: %s\n", result);
// Recycle the result from function
delete result;