From 254a05b3a37fe65df41d9383f15ffa1b93dedbf7 Mon Sep 17 00:00:00 2001 From: Hades2001 <1521377294@qq.com> Date: Tue, 8 Dec 2020 16:36:22 +0800 Subject: [PATCH] compatible with the old API Modified the library file of AXP192 to be compatible with the old API --- src/AXP192.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AXP192.h b/src/AXP192.h index ec40e1aa..662c37e8 100644 --- a/src/AXP192.h +++ b/src/AXP192.h @@ -11,6 +11,8 @@ #define AXP_ADDR 0X34 +#define PowerOff(x) SetSleep(x) + class AXP192 { public: