Skip to content

Commit

Permalink
[SY6970]Add compatibility with old version API
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 30, 2024
1 parent 791a240 commit 34f1707
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/PowersSY6970.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


class PowersSY6970 :
public XPowersCommon<PowersSY6970>
public XPowersCommon<PowersSY6970>
{
friend class XPowersCommon<PowersSY6970>;

Expand Down Expand Up @@ -513,6 +513,11 @@ public:
return "Unknown";
}

bool enableADCMeasure() __attribute__((deprecated("The enableADCMeasure method will be replaced by enableMeasure in the future. Please update it to enableMeasure.")))
{
return enableMeasure();
}

bool enableMeasure(MeasureMode mode = CONTINUOUS)
{
int val = readRegister(POWERS_PPM_REG_02H);
Expand Down

0 comments on commit 34f1707

Please sign in to comment.