diff --git a/sim/state/color.ts b/sim/state/color.ts index b82d607f..a2f0bee4 100644 --- a/sim/state/color.ts +++ b/sim/state/color.ts @@ -66,6 +66,10 @@ namespace pxsim { this.color = 0; this.colors = [128, 128, 128]; this.modeReturnArr = true; + } else if (this.mode == ColorSensorMode.Colors) { + this.color = 0; // None defl color + this.colors = [0, 0, 0]; + this.modeReturnArr = false; } else { // Reflection or ambiend light this.color = 50; this.colors = [0, 0, 0];