mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
Disable interrupts inside Esp.getVcc (#567)
This commit is contained in:
parent
661ccb23ae
commit
3a3f25997c
@ -22,6 +22,7 @@
|
||||
#include "flash_utils.h"
|
||||
#include "eboot_command.h"
|
||||
#include <memory>
|
||||
#include "interrupts.h"
|
||||
|
||||
extern "C" {
|
||||
#include "user_interface.h"
|
||||
@ -125,6 +126,7 @@ void EspClass::restart(void)
|
||||
|
||||
uint16_t EspClass::getVcc(void)
|
||||
{
|
||||
InterruptLock lock;
|
||||
return system_get_vdd33();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user