Skip to content

Commit

Permalink
[drivewire][cpm] only enable for esp32.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Apr 29, 2024
1 parent d4e3b7a commit 0d7192b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/device/drivewire/cpm.cpp
Expand Up @@ -170,6 +170,8 @@ void drivewireCPM::process()
}
}

#ifdef ESP_PLATFORM
drivewireCPM theCPM;
#endif /* ESP_PLATFORM */

#endif /* BUILD_COCO */
2 changes: 2 additions & 0 deletions lib/device/drivewire/cpm.h
Expand Up @@ -33,6 +33,8 @@ class drivewireCPM : public virtualDevice
virtual void status();
};

#ifdef ESP_PLATFORM
extern drivewireCPM theCPM;
#endif /* ESP_PLATFORM */

#endif /* DRIVEWIRECPM_H */

0 comments on commit 0d7192b

Please sign in to comment.