aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-12 15:51:54 +0100
committerThomas White <taw@physics.org>2010-01-12 15:51:54 +0100
commit436129c4230233db746a28d8d45f1340519a3c5f (patch)
tree62f9aac38ddcf46fa29780e3976f72f6adacddf3
parent383d7710c06917e61a2045e5abd360977ab3c80c (diff)
Formatting (and changes to DirAx parameters)
-rw-r--r--src/dirax.c86
1 files changed, 39 insertions, 47 deletions
diff --git a/src/dirax.c b/src/dirax.c
index 9930ca03..2db591f4 100644
--- a/src/dirax.c
+++ b/src/dirax.c
@@ -135,53 +135,45 @@ static void dirax_send_next(struct image *image)
{
switch ( image->dirax_step ) {
- case 1 : {
- dirax_sendline("\\echo off\n", image);
- image->dirax_step++;
- break;
- }
-
- case 2 : {
- dirax_sendline("read xfel.drx\n", image);
- image->dirax_step++;
- break;
- }
-
- case 3 : {
- dirax_sendline("dmax 10\n", image);
- image->dirax_step++;
- break;
- }
-
- case 4 : {
- dirax_sendline("indexfit 2\n", image);
- image->dirax_step++;
- break;
- }
-
- case 5 : {
- dirax_sendline("levelfit 200\n", image);
- image->dirax_step++;
- break;
- }
-
- case 6 : {
- dirax_sendline("go\n", image);
- image->dirax_step++;
- break;
- }
-
- case 7 : {
- dirax_sendline("cell\n", image);
- image->dirax_step++;
- break;
- }
-
- default: {
- image->dirax_step = 0;
- STATUS("DirAx is idle\n");
- g_main_loop_quit(image->dirax_ml);
- }
+ case 1 :
+ dirax_sendline("\\echo off\n", image);
+ image->dirax_step++;
+ break;
+
+ case 2 :
+ dirax_sendline("read xfel.drx\n", image);
+ image->dirax_step++;
+ break;
+
+ case 3 :
+ dirax_sendline("dmax 1000\n", image);
+ image->dirax_step++;
+ break;
+
+ case 4 :
+ dirax_sendline("indexfit 2\n", image);
+ image->dirax_step++;
+ break;
+
+ case 5 :
+ dirax_sendline("levelfit 1000\n", image);
+ image->dirax_step++;
+ break;
+
+ case 6 :
+ dirax_sendline("go\n", image);
+ image->dirax_step++;
+ break;
+
+ case 7 :
+ dirax_sendline("cell\n", image);
+ image->dirax_step++;
+ break;
+
+ default:
+ image->dirax_step = 0;
+ STATUS("DirAx is idle\n");
+ g_main_loop_quit(image->dirax_ml);
}
}