Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.

Commit 81d6107

Browse files
committed
Merge remote-tracking branch 'origin/v3-dev' into v3-chrishamm
2 parents 6950d12 + 48cd43d commit 81d6107

File tree

12 files changed

+163
-178
lines changed

12 files changed

+163
-178
lines changed

Driver/duet.inf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DUET06 = "Duet 06 or 085 3D printer control electronics"
88
ALLIGATOR = "Alligator 3D printer control electronics"
99
DUETNG = "Duet 2 WiFi or Duet 2 Ethernet 3D printer control electronics"
1010
DUETMAESTRO = "Duet 2 Maestro 3D printer control electronics"
11+
DUET3 = "Duet 3 motion control electronics
1112
Serial.SvcDesc = "USB Serial emulation driver"
1213
BOSSAPORT = "Bossa Program Port"
1314

@@ -21,7 +22,7 @@ ClassGuid = {4D36E978-E325-11CE-BFC1-08002BE10318}
2122
DriverPackageDisplayName = %DriverPackageDisplayName%
2223
Provider = %Provider%
2324
CatalogFile = duetinf.cat
24-
DriverVer = 02/03/2018,1.21.0.0 ; date in US format
25+
DriverVer = 10/21/2019,1.22.0.0 ; date in US format
2526

2627
[Manufacturer]
2728
%Provider% = DeviceList, NTAMD64, NT
@@ -37,6 +38,7 @@ FakeModemCopyFileSection = 12
3738
%ALLIGATOR% = DriverInstall, USB\VID_1209&PID_AB3D
3839
%DUETNG% = DriverInstall, USB\VID_1D50&PID_60EC
3940
%DUETMAESTRO% = DriverInstall, USB\VID_1D50&PID_60ED
41+
%DUET3% = DriverInstall, USB\VID_1D50&PID_60EE
4042

4143
[DeviceList.NTAMD64]
4244
%BOSSAPORT% = DriverInstall, USB\VID_03EB&PID_6124
@@ -45,6 +47,7 @@ FakeModemCopyFileSection = 12
4547
%ALLIGATOR% = DriverInstall.NTamd64, USB\VID_1209&PID_AB3D
4648
%DUETNG% = DriverInstall.NTamd64, USB\VID_1D50&PID_60EC
4749
%DUETMAESTRO% = DriverInstall.NTamd64, USB\VID_1D50&PID_60ED
50+
%DUET3% = DriverInstall, USB\VID_1D50&PID_60EE
4851

4952
[DeviceList.NT]
5053
%BOSSAPORT% = DriverInstall, USB\VID_03EB&PID_6124
@@ -53,6 +56,7 @@ FakeModemCopyFileSection = 12
5356
%ALLIGATOR% = DriverInstall.NT, USB\VID_1209&PID_AB3D
5457
%DUETNG% = DriverInstall.NT, USB\VID_1D50&PID_60EC
5558
%DUETMAESTRO% = DriverInstall.NT, USB\VID_1D50&PID_60ED
59+
%DUET3% = DriverInstall, USB\VID_1D50&PID_60EE
5660

5761
;------------------------------------------------------------
5862
; Windows XP, Vista, Windows 7, Windows 8, Windows 10 - 32bit

Driver/duetinf.cat

2.85 KB
Binary file not shown.

Scripts/signdriver.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
rem CD to the RepRapFirmware root directory before running this
1+
cd ..rem CD to the RepRapFirmware root directory before running this
22
"C:\Program Files (x86)\Windows Kits\10\bin\x86\Inf2Cat.exe" /driver:Driver /os:XP_X86,Vista_X86,Vista_X64,7_X86,7_X64,8_X86,8_X64,6_3_X86,6_3_X64,10_X86,10_X64
33
set PASSWORD=
44
set /P PASSWORD=Private key password: %=%
5-
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe" sign /f g:\EscherTechnologies.p12 /p %PASSWORD% /tr http://timestamp.comodoca.com /v Driver/duetinf.cat
5+
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe" sign /f g:\EscherTechnologies.pfx /p %PASSWORD% /tr http://timestamp.comodoca.com /v Driver/duetinf.cat
66
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe" verify /pa /tw Driver/duetinf.cat

src/GCodes/GCodes.cpp

Lines changed: 0 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,129 +3316,6 @@ void GCodes::HandleReply(GCodeBuffer& gb, OutputBuffer *reply)
33163316
}
33173317
}
33183318

3319-
// Configure heater protection (M143). Returns true if an error occurred
3320-
GCodeResult GCodes::SetHeaterProtection(GCodeBuffer& gb, const StringRef& reply)
3321-
{
3322-
const int index = (gb.Seen('P'))
3323-
? gb.GetIValue()
3324-
: (gb.Seen('H')) ? gb.GetIValue() : 1; // default to extruder 1 if no heater number provided
3325-
if ((index < 0 || index >= (int)MaxHeaters) && (index < (int)FirstExtraHeaterProtection || index >= (int)(FirstExtraHeaterProtection + NumExtraHeaterProtections)))
3326-
{
3327-
reply.printf("Invalid heater protection item '%d'", index);
3328-
return GCodeResult::error;
3329-
}
3330-
3331-
HeaterProtection &item = reprap.GetHeat().AccessHeaterProtection(index);
3332-
3333-
// Set heater to control
3334-
bool seen = false;
3335-
if (gb.Seen('P') && gb.Seen('H'))
3336-
{
3337-
const int heater = gb.GetIValue();
3338-
if (heater > (int)MaxHeaters) // allow negative values to disable heater protection
3339-
{
3340-
reply.printf("Invalid heater number '%d'", heater);
3341-
return GCodeResult::error;
3342-
}
3343-
3344-
seen = true;
3345-
item.SetHeater(heater);
3346-
}
3347-
3348-
// Set sensor that supervises the heater
3349-
if (gb.Seen('X'))
3350-
{
3351-
item.SetSensorNumber(gb.GetIValue());
3352-
seen = true;
3353-
}
3354-
3355-
// Set trigger action
3356-
if (gb.Seen('A'))
3357-
{
3358-
const int action = gb.GetIValue();
3359-
if (action < 0 || action > (int)MaxHeaterProtectionAction)
3360-
{
3361-
reply.printf("Invalid heater protection action '%d'", action);
3362-
}
3363-
3364-
seen = true;
3365-
item.SetAction(static_cast<HeaterProtectionAction>(action));
3366-
}
3367-
3368-
// Set trigger condition
3369-
if (gb.Seen('C'))
3370-
{
3371-
const int trigger = gb.GetIValue();
3372-
if (trigger < 0 || trigger > (int)MaxHeaterProtectionTrigger)
3373-
{
3374-
reply.printf("Invalid heater protection trigger '%d'", trigger);
3375-
}
3376-
3377-
seen = true;
3378-
item.SetTrigger(static_cast<HeaterProtectionTrigger>(trigger));
3379-
}
3380-
3381-
// Set temperature limit
3382-
if (gb.Seen('S'))
3383-
{
3384-
const float limit = gb.GetFValue();
3385-
if (limit <= BadLowTemperature || limit >= BadErrorTemperature)
3386-
{
3387-
reply.copy("Invalid temperature limit");
3388-
return GCodeResult::error;
3389-
}
3390-
3391-
seen = true;
3392-
item.SetTemperatureLimit(limit);
3393-
}
3394-
3395-
// Report current parameters
3396-
if (!seen)
3397-
{
3398-
if (item.GetHeater() < 0)
3399-
{
3400-
reply.printf("Temperature protection item %d is not configured", index);
3401-
}
3402-
else
3403-
{
3404-
const char *actionString, *triggerString;
3405-
switch (item.GetAction())
3406-
{
3407-
case HeaterProtectionAction::GenerateFault:
3408-
actionString = "generate a heater fault";
3409-
break;
3410-
case HeaterProtectionAction::PermanentSwitchOff:
3411-
actionString = "permanently switch off";
3412-
break;
3413-
case HeaterProtectionAction::TemporarySwitchOff:
3414-
actionString = "temporarily switch off";
3415-
break;
3416-
default:
3417-
actionString = "(undefined)";
3418-
break;
3419-
}
3420-
3421-
switch (item.GetTrigger())
3422-
{
3423-
case HeaterProtectionTrigger::TemperatureExceeded:
3424-
triggerString = "exceeds";
3425-
break;
3426-
case HeaterProtectionTrigger::TemperatureTooLow:
3427-
triggerString = "falls below";
3428-
break;
3429-
default:
3430-
triggerString = "(undefined)";
3431-
break;
3432-
}
3433-
3434-
reply.printf("Temperature protection item %d is configured for heater %d and uses sensor %d to %s if the temperature %s %.1f" DEGREE_SYMBOL "C",
3435-
index, item.GetHeater(), item.GetSensorNumber(), actionString, triggerString, (double)item.GetTemperatureLimit());
3436-
}
3437-
}
3438-
3439-
return GCodeResult::ok;
3440-
}
3441-
34423319
void GCodes::SetToolHeaters(Tool *tool, float temperature, bool both)
34433320
{
34443321
if (tool == nullptr)

src/GCodes/GCodes.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ class GCodes INHERIT_OBJECT_MODEL
284284
# endif
285285
#endif
286286

287-
GCodeResult SetHeaterProtection(GCodeBuffer &gb, const StringRef &reply); // Configure heater protection (M143)
288-
289287
GCodeResult ManageTool(GCodeBuffer& gb, const StringRef& reply); // Create a new tool definition
290288
void SetToolHeaters(Tool *tool, float temperature, bool both); // Set all a tool's heaters to the temperature, for M104/M109
291289
bool ToolHeatersAtSetTemperatures(const Tool *tool, bool waitWhenCooling, float tolerance) const;

src/GCodes/GCodes2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply)
18271827
break;
18281828

18291829
case 143: // Configure heater protection
1830-
result = SetHeaterProtection(gb, reply);
1830+
result = reprap.GetHeat().SetHeaterProtection(gb, reply);
18311831
break;
18321832

18331833
case 144: // Set bed to standby, or to active if S1 parameter given

0 commit comments

Comments
 (0)