Compare commits

..

No commits in common. "feat/motor_warmup_mothed_2" and "master" have entirely different histories.

1 changed files with 0 additions and 9 deletions

View File

@ -2,8 +2,6 @@ class Device {
public:
virtual void turnOn() = 0;
virtual void turnOff() = 0;
virtual bool needsWarmup() {return false;};// 判斷馬達是否需要預熱
virtual void warmup() = 0;
virtual ~Device() {}
};
@ -25,11 +23,4 @@ public:
void turnOff() override {
// 關閉馬達
}
private:
bool needsWarmup() override {
return true; // 馬達需要預熱
}
void warmup() override {
// 預熱馬達
}
};