Encoder fyrir position í int32, stöðuvél án null-pointera, nefndir fastar, LED gegnum context
This commit is contained in:
@@ -8,7 +8,7 @@ void OperationalState::enter()
|
||||
{
|
||||
Serial.println("State: Operational");
|
||||
|
||||
digitalWrite(LED_BUILTIN, HIGH);
|
||||
context->led_on();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,5 +33,5 @@ void OperationalState::exit()
|
||||
{
|
||||
context->stop_motor();
|
||||
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
context->led_off();
|
||||
}
|
||||
Reference in New Issue
Block a user