Advertisement
Guest User

FT-2020-DISCOUNT-LCD-jefbed-0.patch

a guest
Feb 22nd, 2019
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. diff -u FT-2020-DISCOUNT-LCD-orig/Configuration.h FT-2020-DISCOUNT-LCD-jefbed/Configuration.h
  2. --- FT-2020-DISCOUNT-LCD-orig/Configuration.h 2017-05-18 19:34:28.000000000 -0400
  3. +++ FT-2020-DISCOUNT-LCD-jefbed/Configuration.h 2018-04-08 14:32:20.059274633 -0400
  4. @@ -329,16 +329,16 @@
  5. #define DISABLE_E false // For all extruders
  6. #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
  7.  
  8. -#define INVERT_X_DIR false // for Mendel set to false, for Orca set to true
  9. +#define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
  10. #define INVERT_Y_DIR true // for Mendel set to true, for Orca set to false
  11. #define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true
  12. -#define INVERT_E0_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
  13. +#define INVERT_E0_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
  14. #define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  15. #define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  16.  
  17. // ENDSTOP SETTINGS:
  18. // Sets direction of endstops when homing; 1=MAX, -1=MIN
  19. -#define X_HOME_DIR 1
  20. +#define X_HOME_DIR -1
  21. #define Y_HOME_DIR -1
  22. #define Z_HOME_DIR -1
  23.  
  24. @@ -774,8 +774,8 @@
  25.  
  26. #define FILAMENT_SENSOR_EXTRUDER_NUM 0 //The number of the extruder that has the filament sensor (0,1,2)
  27. #define MEASUREMENT_DELAY_CM 14 //measurement delay in cm. This is the distance from filament sensor to middle of barrel
  28. -
  29. -#define DEFAULT_NOMINAL_FILAMENT_DIA 3.0 //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software. Used for sensor reading validation
  30. +#define DEFAULT_NOMINAL_FILAMENT_DIA 1.75
  31. +//#define DEFAULT_NOMINAL_FILAMENT_DIA 3.0 //Enter the diameter (in mm) of the filament generally used (3.0 mm or 1.75 mm) - this is then used in the slicer software. Used for sensor reading validation
  32. #define MEASURED_UPPER_LIMIT 3.30 //upper limit factor used for sensor reading validation in mm
  33. #define MEASURED_LOWER_LIMIT 1.90 //lower limit factor for sensor reading validation in mm
  34. #define MAX_MEASUREMENT_DELAY 20 //delay buffer size in bytes (1 byte = 1cm)- limits maximum measurement delay allowable (must be larger than MEASUREMENT_DELAY_CM and lower number saves RAM)
  35. Common subdirectories: FT-2020-DISCOUNT-LCD-orig/example_configurations and FT-2020-DISCOUNT-LCD-jefbed/example_configurations
  36. Common subdirectories: FT-2020-DISCOUNT-LCD-orig/scripts and FT-2020-DISCOUNT-LCD-jefbed/scripts
  37. diff -u FT-2020-DISCOUNT-LCD-orig/SdBaseFile.cpp FT-2020-DISCOUNT-LCD-jefbed/SdBaseFile.cpp
  38. --- FT-2020-DISCOUNT-LCD-orig/SdBaseFile.cpp 2015-09-18 22:27:18.000000000 -0400
  39. +++ FT-2020-DISCOUNT-LCD-jefbed/SdBaseFile.cpp 2018-04-04 13:31:42.707951048 -0400
  40. @@ -294,7 +294,7 @@
  41. return true;
  42. }
  43. //------------------------------------------------------------------------------
  44. -void SdBaseFile::getpos(fpos_t* pos) {
  45. +void SdBaseFile::getpos(sd_fpos_t* pos) {
  46. pos->position = curPosition_;
  47. pos->cluster = curCluster_;
  48. }
  49. @@ -925,7 +925,7 @@
  50. * \return The byte if no error and not at eof else -1;
  51. */
  52. int SdBaseFile::peek() {
  53. - fpos_t pos;
  54. + sd_fpos_t pos;
  55. getpos(&pos);
  56. int c = read();
  57. if (c >= 0) setpos(&pos);
  58. @@ -1492,7 +1492,7 @@
  59. return false;
  60. }
  61. //------------------------------------------------------------------------------
  62. -void SdBaseFile::setpos(fpos_t* pos) {
  63. +void SdBaseFile::setpos(sd_fpos_t* pos) {
  64. curPosition_ = pos->position;
  65. curCluster_ = pos->cluster;
  66. }
  67. diff -u FT-2020-DISCOUNT-LCD-orig/SdBaseFile.h FT-2020-DISCOUNT-LCD-jefbed/SdBaseFile.h
  68. --- FT-2020-DISCOUNT-LCD-orig/SdBaseFile.h 2015-09-18 22:27:18.000000000 -0400
  69. +++ FT-2020-DISCOUNT-LCD-jefbed/SdBaseFile.h 2018-04-04 13:31:55.928007306 -0400
  70. @@ -31,16 +31,16 @@
  71. #include "SdVolume.h"
  72. //------------------------------------------------------------------------------
  73. /**
  74. - * \struct fpos_t
  75. + * \struct sd_fpos_t
  76. * \brief internal type for istream
  77. * do not use in user apps
  78. */
  79. -struct fpos_t {
  80. +struct sd_fpos_t {
  81. /** stream position */
  82. uint32_t position;
  83. /** cluster for position */
  84. uint32_t cluster;
  85. - fpos_t() : position(0), cluster(0) {}
  86. + sd_fpos_t() : position(0), cluster(0) {}
  87. };
  88.  
  89. // use the gnu style oflag in open()
  90. @@ -196,11 +196,11 @@
  91. /** get position for streams
  92. * \param[out] pos struct to receive position
  93. */
  94. - void getpos(fpos_t* pos);
  95. + void getpos(sd_fpos_t* pos);
  96. /** set position for streams
  97. * \param[out] pos struct with value for new position
  98. */
  99. - void setpos(fpos_t* pos);
  100. + void setpos(sd_fpos_t* pos);
  101. //----------------------------------------------------------------------------
  102. bool close();
  103. bool contiguousRange(uint32_t* bgnBlock, uint32_t* endBlock);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement