add dummy common_hal_mcu_processor_get_voltage() for spresense

This commit is contained in:
Dan Halbert 2019-10-15 09:07:12 -04:00
parent eca73436c9
commit a0d18ac4e6
2 changed files with 8 additions and 2 deletions

@ -1 +1 @@
Subproject commit c42edc080cb61d4af8015df6c1d404273b3a5bfa
Subproject commit e413c9efa303d70de019a91aa415384fe80ca78f

View File

@ -26,6 +26,8 @@
#include <sys/boardctl.h>
// For NAN: remove when not needed.
#include <math.h>
#include "py/mphal.h"
uint32_t common_hal_mcu_processor_get_frequency(void) {
@ -33,7 +35,11 @@ uint32_t common_hal_mcu_processor_get_frequency(void) {
}
float common_hal_mcu_processor_get_temperature(void) {
return 0;
return NAN;
}
float common_hal_mcu_processor_get_voltage(void) {
return NAN;
}
void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {